(DOM)Compute the sum of width of elements contained in blockleve element
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

(DOM)Compute the sum of width of elements contained in blockleve element

From: Luke Matuszewski <matuszewski.lukasz@gmail.com>
Date: Wed Feb 08 2006 - 03:35:05 CET

Hi.
I know that it is hard problem (as hard as CSS and HTML layouting rules
apply), but maybe someone
has some code or idea how to start it. For now i know i will cssQuery:

<URL:http://dean.edwards.name/my/cssQuery/>

My point of interest is all elements inside <div class="bodycontent">
[...] </div>, so to get direct descendant elements i will use:

var tags = cssQuery("div[class='bodycontent'] > *");

My question is about returned elements (which represent html tags) - do
they have some property which will indicate the actual width which they
take ?

BR.
Luke Matuszewski
Received on Mon May 1 03:09:35 2006