Closed Thread Icon

Topic awaiting preservation: NN DOM dillemma (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=8188" title="Pages that link to Topic awaiting preservation: NN DOM dillemma (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: NN DOM dillemma <span class="small">(Page 1 of 1)</span>\

 
Dox
Nervous Wreck (II) Inmate

From: UK
Insane since: May 2002

posted posted 05-27-2002 02:22

Ok, I'm about to start pulling my hair out here.... does onyone know how I write this,

document.all.containerdiv.style.height = heightvariable;

In Netscape 4 and 6 syntax?

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 05-27-2002 03:58

Netscape 4:

document.containerdiv.height = heightvariable;

good browsers (including netscape 6):

document.getElementById('containerdiv').style.height = heightvariable + 'px';

Hugh
Paranoid (IV) Inmate

From: Dublin, Ireland
Insane since: Jul 2000

posted posted 05-27-2002 16:21

I didnt think you need the +'px' is it needed ?

kuckus
Bipolar (III) Inmate

From: Berlin (almost)
Insane since: Dec 2001

posted posted 05-27-2002 19:43

Well, you could say that it isn't exactly needed because *most* browsers will interpret 20 as 20px, but it's always better to tell the browser if you want it to be 20px, 20em or whatever. Just to be sure that it really looks the same in all browsers.

kuckus (cell #282)

Dox
Nervous Wreck (II) Inmate

From: UK
Insane since: May 2002

posted posted 05-27-2002 20:02

Thanks, works beautifully.
And no, you don't have to put in the 'Px' part.

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 05-27-2002 21:39

It's not necessary, but strongly recommended.

« BackwardsOnwards »

Show Forum Drop Down Menu