Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Aug 2002
    Posts
    70
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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.

  • #2
    Registered User
    Join Date
    Jun 2002
    Location
    Arizona
    Posts
    175
    Thanks
    0
    Thanked 0 Times in 0 Posts
    good luck.

  • #3
    Senior Coder
    Join Date
    Jun 2002
    Location
    near Oswestry
    Posts
    4,508
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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 08:15 PM.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •