<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
I would use <i>offsetHeight </i>to know the height of the div and
then substract paddings, margins and borders of the div...<br>
This way you would have the size of your content...<br>
Something like...<br>
<pre>
var opts1 = document.getElementById("options");</pre>
<pre>
&nbsp; opts1H = opts1.offsetHeight;

  opts2H = opts1 - 10; // 5px top and bottom margin value for example.</pre>
<pre>&nbsp; opts3H = opts2H - 10; // 5px top and bottom padding value for example.</pre>
<pre>&nbsp; opts4H = opts3H - 2; // 1px top and bottom margin value for example </pre>
<pre>&nbsp; opts5H = opts4H + "px";</pre>
<br>
Details about offsetheight property can be readed here:
<a class="moz-txt-link-freetext" href="http://developer.mozilla.org/en/docs/DOM:element.offsetHeight">http://developer.mozilla.org/en/docs/DOM:element.offsetHeight</a><br>
<br>
Hope this helps...<br>
<br>
Guillaume.<br>
<br>
<blockquote
 cite="mid923a37710610301228w4c2e1d0bk97086b815cb6032@mail.gmail.com"
 type="cite">What function I use to know the height of the content of a
div, even if the div has a cursor<br>
  <br>
Thanks<br>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
Javascript mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Javascript@LaTech.edu">Javascript@LaTech.edu</a>
<a class="moz-txt-link-freetext" href="https://lists.LaTech.edu/mailman/listinfo/javascript">https://lists.LaTech.edu/mailman/listinfo/javascript</a>
  </pre>
</blockquote>
<br>
</body>
</html>