Closed Thread Icon

Preserved Topic: is there a NN6/Mozilla cross browser equivalent for this? (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=18289" title="Pages that link to Preserved Topic: is there a NN6/Mozilla cross browser equivalent for this? (Page 1 of 1)" rel="nofollow" >Preserved Topic: is there a NN6/Mozilla cross browser equivalent for this? <span class="small">(Page 1 of 1)</span>\

 
hecster2k
Nervous Wreck (II) Inmate

From: sj, ca, usa
Insane since: Feb 2002

posted posted 03-06-2002 01:08

in IE, you can get the width of a div by saying something like:

document.all.mydiv.clientWidth;

Is there an equivalent way of getting this value in Gecko?

the more i hang around in this crazy home, the harder i find it to hang onto my sanity...

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 03-06-2002 01:56

Try this for starters:

parseInt(document.getElementById("myDivID").style.width);

hecster2k
Nervous Wreck (II) Inmate

From: sj, ca, usa
Insane since: Feb 2002

posted posted 03-06-2002 18:10

i found the answer!

document.getElementById('mydiv').offsetWidth

in NN6 and gecko, this will return the width of the div.

the more i hang around in this crazy home, the harder i find it to hang onto my sanity...

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 03-06-2002 18:26

Glad I could help =) hah =)

Bugimus
Maniac (V) Mad Scientist

From: New California
Insane since: Mar 2000

posted posted 03-06-2002 20:19

I think you're both right: http://www.ozoneasylum.com/Forum2/HTML/001137.html

« BackwardsOnwards »

Show Forum Drop Down Menu