View Full Version : divs in NS
01-31-2004, 09:24 PM
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="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 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
01-31-2004, 11:58 PM
Can you put the page up so we can see it (not) working?
02-01-2004, 04:00 AM
02-01-2004, 04:32 AM
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.
02-01-2004, 08:19 AM
Any better now? I think I was missing a few divs. Thanks
02-01-2004, 08:25 AM
"SPECIALIZING IN QUALITY CEDAR PRIVACY FENCES"
Is still locked to the viewport.
02-01-2004, 09:02 AM
What browser? It's scrolling in NS7 now...Thx :o
02-01-2004, 09:16 AM
All good now :)
I tested it in NN 6.1 and Moz 1.6.
02-01-2004, 10:59 AM
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
02-01-2004, 07:46 PM
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!"
02-01-2004, 08:01 PM
Go to the image URL and there use Force Reload (CTRL-F5).
02-01-2004, 08:18 PM
02-01-2004, 08:21 PM
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?
02-01-2004, 08:36 PM
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.
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.