|
Posted by Martin Jay on 08/26/07 21:58
On Sat, 25 Aug 2007 22:59:50 -0000, lhjayunaz@gmail.com wrote:
>hi, is it possible in anyway, to read or determine absolute pixel
>width size of contents within a <div> tag?
>
>so like <div>what is pixel wXX size of this text?</div> :-) :-)
There is a discussion about this here:
<http://www.ozzu.com/ftopic39999.html>.
The fifth message in the thread may be of interest to you.
As I understand it, it's only possible to get the width of a DIV using
Javascript in IE (<7?) if it has been specifically set using CSS. In
which case you'd probably know it already.
I've uploaded a simplified page using the method described to
<http://www.spam-free.org.uk/pages/div_width.php>.
Try loading the page into Firefox, Opera or Safari and then hitting
the refresh button in the browser.
As usual IE, versions less then 7 anyway, is the odd man out.
--
Martin Jay
Navigation:
[Reply to this message]
|