Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Netscape 4.x not scrolling page with <div>'s - Help!!!

Status
Not open for further replies.

ChrisMacPherson

Programmer
Jul 3, 2000
157
GB
Hello again!

I have made a page which has some layers on, No not <layer>'s, but <div>'s. Phew, you say! Em, the problem is that some of them are positioned so that they need the page to be scrolled down in order for them to be seen, and netscape 4.7 does not take this in to account. It doesn't provide scroll bars for me to scroll down and view my beautiful layers at the bottom of the page.

This is only true though for layers which have no images in them. I am using one hidden layer on each page with a pixel img stretched downwards as far as needed, and this enables the scroll bars.

I need it the srolling to work normally, so I can do some other javascript routines on the layers, so if you can help, then please do.

Hope this makes sense.

Thanks for any help Chris MacPherson
macpweb@hotmail.com
Bring on the new Browza's!!
 
Using relative positioning instead of absolute will fix this problem most of the time...
 
yes, relative positioning will work, but what if you need absolute positioning? i have this same problem with a form in a <div>, and it is totally random... in another page that is virtually identical i get scrollbars, but in this one i don't. i fooled with something and got the scrollbars to appear once, but then they disappeared again and i have no idea what i changed. hopefully i'll figure it out soon...
 
hey, thedamager, i had the similar problem, & looks like i found how 2 fix it (via javascript):
just before ur </body> tag place the followin:
<script>
var THERealHeight=document.height
</script>

then, onload define followin function:
function HeightFix(){
document.height=THERealHeight
}


hope that helps..

regards, vic
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top