You are here: Re: <div question, getting fixed size of contents, not just character count « HTML « IT news, forums, messages
Re: <div question, getting fixed size of contents, not just character count

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация