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 14 of 14

Thread: divs in NS

  1. #1
    Senior Coder
    Join Date
    Jun 2002
    Location
    ColoRockyz
    Posts
    1,646
    Thanks
    1
    Thanked 0 Times in 0 Posts

    divs in NS

    Uhhh...why aren't my top divs scrolling in NS? All the rest do. The ones in bold don't scroll and I've used background-attachment:scroll in the body tag...Thx

    <div style="text-align:center">
    <div style="margin-left:auto; margin-right:auto;width:778px">

    <img src="img/mine5.jpg" width="788">

    <div style="position: absolute; top:3px; left:415px"><span class="header">FENCE EXPERTS</span><br><span style="font: bold 18px tahoma">Residential & Commercial Fencing</span><h1>Serving<br>Erie Lafayette Louisville Broomfield Superior<br>Colorado</h1>
    </div>
    <div style="position:absolute; top:168px; left: 145px;font:bold 20px arial;color:white">SPECIALIZING IN QUALITY CEDAR PRIVACY FENCES</DIV>


    main content div's...these are ok

    </div>
    </div>
    </body>
    </html>
    Zoobie or not Zoobie...That is the problem.
    <body onUnload="flush( ! )">

  • #2
    Senior Coder
    Join Date
    Oct 2003
    Location
    Australia
    Posts
    1,963
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Can you put the page up so we can see it (not) working?

    I take no responsibility for the above nonsense.


    Left Justified

  • #3
    Senior Coder
    Join Date
    Jun 2002
    Location
    ColoRockyz
    Posts
    1,646
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Zoobie or not Zoobie...That is the problem.
    <body onUnload="flush( ! )">

  • #4
    Master Coder
    Join Date
    Feb 2003
    Location
    UmeŚ, Sweden
    Posts
    5,575
    Thanks
    0
    Thanked 83 Times in 74 Posts
    Because of a cascade of bad choices:
    - You use overflow: auto: in the body element, which means it will size to it's containing box (the html element), which in turn sizes to the viewport (= window). This also breaks the scroll wheel in moz.
    - You use position: absolute; on the div, which makes it position relative to it's closest positioned ancestor. There is no such ancestor, which means it positions according to the html element. This is the equivalent of fixed positioning, and would do the same in all of op7, ie5m, saf and ie6w if you used standards rendering mode instead of quirks rendering mode.
    - You specify the heading background on another element than the text, instead of using the same element.
    - You use a DOCTYPE throwing browsers into quirks mode.
    - You use non-semantical markup.
    - You haven't validated your markup and stylesheets.
    liorean <[lio@wg]>
    Articles: RegEx evolt wsabstract , Named Arguments
    Useful Threads: JavaScript Docs & Refs, FAQ - HTML & CSS Docs, FAQ - XML Doc & Refs
    Moz: JavaScript DOM Interfaces MSDN: JScript DHTML KDE: KJS KHTML Opera: Standards

  • #5
    Senior Coder
    Join Date
    Jun 2002
    Location
    ColoRockyz
    Posts
    1,646
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Any better now? I think I was missing a few divs. Thanks
    Zoobie or not Zoobie...That is the problem.
    <body onUnload="flush( ! )">

  • #6
    Senior Coder
    Join Date
    Oct 2003
    Location
    Australia
    Posts
    1,963
    Thanks
    0
    Thanked 0 Times in 0 Posts
    "SPECIALIZING IN QUALITY CEDAR PRIVACY FENCES"
    Is still locked to the viewport.

    I take no responsibility for the above nonsense.


    Left Justified

  • #7
    Senior Coder
    Join Date
    Jun 2002
    Location
    ColoRockyz
    Posts
    1,646
    Thanks
    1
    Thanked 0 Times in 0 Posts
    What browser? It's scrolling in NS7 now...Thx
    Zoobie or not Zoobie...That is the problem.
    <body onUnload="flush( ! )">

  • #8
    Senior Coder
    Join Date
    Oct 2003
    Location
    Australia
    Posts
    1,963
    Thanks
    0
    Thanked 0 Times in 0 Posts
    All good now
    I tested it in NN 6.1 and Moz 1.6.

    I take no responsibility for the above nonsense.


    Left Justified

  • #9
    Senior Coder
    Join Date
    Jun 2002
    Location
    ColoRockyz
    Posts
    1,646
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Ugh...Nutscrape. Now, my page main content isn't fitting...and the image is stuck in the cache even though I've emptied it and refresh several times. Can anyone see it it's displaying correctly in NS? Anything else need to be done to the code? Thanks
    Zoobie or not Zoobie...That is the problem.
    <body onUnload="flush( ! )">

  • #10
    Senior Coder
    Join Date
    Jun 2002
    Location
    ColoRockyz
    Posts
    1,646
    Thanks
    1
    Thanked 0 Times in 0 Posts
    So, the absolute positioning's ok now?
    And how do you empty the image stuck in NS's cache? Nothing's working. Thx

    "This Page Is Valid HTML 4.01 Strict!"
    Zoobie or not Zoobie...That is the problem.
    <body onUnload="flush( ! )">

  • #11
    Master Coder
    Join Date
    Feb 2003
    Location
    UmeŚ, Sweden
    Posts
    5,575
    Thanks
    0
    Thanked 83 Times in 74 Posts
    Go to the image URL and there use Force Reload (CTRL-F5).
    liorean <[lio@wg]>
    Articles: RegEx evolt wsabstract , Named Arguments
    Useful Threads: JavaScript Docs & Refs, FAQ - HTML & CSS Docs, FAQ - XML Doc & Refs
    Moz: JavaScript DOM Interfaces MSDN: JScript DHTML KDE: KJS KHTML Opera: Standards

  • #12
    Senior Coder
    Join Date
    Jun 2002
    Location
    ColoRockyz
    Posts
    1,646
    Thanks
    1
    Thanked 0 Times in 0 Posts
    ugh
    Zoobie or not Zoobie...That is the problem.
    <body onUnload="flush( ! )">

  • #13
    Master Coder
    Join Date
    Feb 2003
    Location
    UmeŚ, Sweden
    Posts
    5,575
    Thanks
    0
    Thanked 83 Times in 74 Posts
    And you say this is ns7 only? Because it sure doesn't sound like it's a browser fault, it sounds like a proxy server cache problem. Try to add "?whatever" to the end of the file name when you request it and see if that helps. If it does but the regular C-F5 does not, you should see if you can disable the proxy.

    [:Edit:] You edited away your post. Does that mean it works?
    Last edited by liorean; 02-01-2004 at 07:24 PM.
    liorean <[lio@wg]>
    Articles: RegEx evolt wsabstract , Named Arguments
    Useful Threads: JavaScript Docs & Refs, FAQ - HTML & CSS Docs, FAQ - XML Doc & Refs
    Moz: JavaScript DOM Interfaces MSDN: JScript DHTML KDE: KJS KHTML Opera: Standards

  • #14
    Senior Coder
    Join Date
    Jun 2002
    Location
    ColoRockyz
    Posts
    1,646
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Wowser...NS doesn't even like spans much at all...What a lame browser...No wonder they cut back on development with 1% using it.
    Last edited by zoobie; 02-01-2004 at 10:00 PM.
    Zoobie or not Zoobie...That is the problem.
    <body onUnload="flush( ! )">


  •  

    Posting Permissions

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