Closed Thread Icon

Preserved Topic: Changin the width of a Div fer different browsers? Pages that link to <a href="https://ozoneasylum.com/backlink?for=18385" title="Pages that link to Preserved Topic: Changin the width of a Div fer different browsers?" rel="nofollow" >Preserved Topic: Changin the width of a Div fer different browsers?\

 
Author Thread
eyezaer
Lunatic (VI) Mad Scientist

From: the Psychiatric Ward
Insane since: Sep 2000

posted posted 02-06-2002 01:58


My subject is basically my question... I have some DIV's in a table on mi page, ya see, and I need to tell it to make their with 65% in NN6... IE6 and NN4.7 need to be 100% ya follow?

quote:
#div0 { position : absolute; width : 100%; left : 50; top : 80; visibility : hidden; }

#div1 { position : absolute; width : 100%; left : 50; top : 80; visibility : hidden; }

#div2 { position : absolute; width : 100%; left : 50; top : 80; visibility : hidden; }



so um.... how would I do that?

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 02-06-2002 02:42

Use JavaScript to document.write the style sheet.

Note that I'm pretty sure you can't put script tags inside style tags, so you have to output the style tags via JS also.

eyezaer
Lunatic (VI) Mad Scientist

From: the Psychiatric Ward
Insane since: Sep 2000

posted posted 02-06-2002 03:04

mmmm... yah... Okay, I will see if I can hack someting together. I will probably be back tho... he he.

oh yah... im movin this to the JS forum...

Buggs.... I think this will fix my problem... It looks like the easiest way to do so... NN6 is just funky.



[This message has been edited by eyezaer (edited 02-06-2002).]

Bugimus
Maniac (V) Mad Scientist

From: New California
Insane since: Mar 2000

posted posted 02-06-2002 05:25

Izzy, using document.write's sounded like the best solution, however, I can't seem to get it to work in Mozilla. I have had a lot of trouble with NN6 and Mozilla when it comes to manipulating and detecting the correct sizes of divs. I'm sure there's a workaround, I'll keep looking at this.

Bugimus
Maniac (V) Mad Scientist

From: New California
Insane since: Mar 2000

posted posted 02-06-2002 05:38

Ok, I messed up and I think what Slime said will do the trick for all concerned browsers. I just emailed you some sample code, Izzy.

eyezaer
Lunatic (VI) Mad Scientist

From: the Psychiatric Ward
Insane since: Sep 2000

posted posted 02-06-2002 06:06

COOL! That JS is quite a trip...

I only have 2 versions of NN and IE6 runnin around on my computer... what other browsers should I get to test stuffs on?

Bugimus
Maniac (V) Mad Scientist

From: New California
Insane since: Mar 2000

posted posted 02-06-2002 06:47

Opera 6 http://www.opera.com/

and I use Mozilla instead of Netscape 6 proper http://www.mozilla.org/

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 02-06-2002 07:38

You may want a 4.x version of NN too but install at your own risk (the client is fine but they also install a bunch of AOL crap and jack your default client settings)
http://www.netscape.com/download/archive/



:[ Computers let you make more mistakes faster than any other invention in human history, with the possible exceptions of handguns and tequila. ]:

eyezaer
Lunatic (VI) Mad Scientist

From: the Psychiatric Ward
Insane since: Sep 2000

posted posted 02-07-2002 05:50

Groo-vay!

Wow... nn2... no way...

« BackwardsOnwards »

Show Forum Drop Down Menu