Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-09-2003, 07:08 PM   PM User | #1
rsci
New Coder

 
Join Date: Aug 2002
Posts: 70
Thanks: 0
Thanked 0 Times in 0 Posts
rsci is an unknown quantity at this point
Question Dynamic 'layers' in NS4 - Div VS Layer

Will Netscape, all versions of 4.x, support a dynamically written div or should a layer tag be used?

for example, will this work in NS 4.x?
document.write('<div top="10" left="10" style="position:absolute, background-color:blue;heigth:100;width:100;">text here</div>');

Thanks.
__________________
Rsci
gojukyokai@earthlink.net
rsci is offline   Reply With Quote
Old 01-09-2003, 07:12 PM   PM User | #2
Phip
Registered User

 
Join Date: Jun 2002
Location: Arizona
Posts: 175
Thanks: 0
Thanked 0 Times in 0 Posts
Phip is an unknown quantity at this point
good luck.
Phip is offline   Reply With Quote
Old 01-10-2003, 07:12 PM   PM User | #3
brothercake
Senior Coder


 
Join Date: Jun 2002
Location: near Oswestry
Posts: 4,508
Thanks: 0
Thanked 0 Times in 0 Posts
brothercake is an unknown quantity at this point
Yes it will work, but not quite like that:

document.write('<div style="position:absolute;left:0px;top:0px;background-color:blue;height:100px;width:100px;">text here</div>');

but absolutely-positioned divs are incredibly unstable in ns4. If you're determined to provide rich content for ns4, then you'd do well to investigate its <layer> setup.

Last edited by brothercake; 01-10-2003 at 07:15 PM..
brothercake is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:47 AM.


Advertisement
Log in to turn off these ads.