Forum Moderators: not2easy

Message Too Old, No Replies

Height and Vert Scrollbar Problems in IE and FF

How can I properly set the height?

         

itKiwi

11:38 am on Sep 12, 2006 (gmt 0)

10+ Year Member



I have a page made up of the following divs:
Header: position fixed, 80 px high
Footer: position fixed, 50 px high
Left Hand menu: position absolute
Content: position absolute.
Everything, except the content, should be fixed on the page. Only the content scrolls.
All works OK in Firefox, but I had no vertical scrollbar in IE. I read in a thread here that a “height” selector is needed to generate the scrollbar, so I put one in at 100 %, and sure enough, I get my scroll bar.
But . . . FF now has the scrollbar finishing above the footer instead of at the footer, and some of the text remains hidden under the footer. With IE, the header has extended down by about 20 px, some of the text is now in this area, and there are the same problems with the scrollbar position and text hidden under the footer.
I didn’t really expect putting “height: 100%” in the content div to solve eveything. I’ve tried various %s, but no solution. How can I properly define the height of the content div? Are there workarounds for these differences in IE?
There is also a problem with IE losing text on the right hand edge of the page, and the “new” menu is not at the edge of the page, but I’ll look at these separately later, unless anyone has any ideas?
Thanks

icantthinkofone

2:26 pm on Sep 12, 2006 (gmt 0)

10+ Year Member



There are so many things there it would be better to look at your complete code. Just copy/paste it all here or go to another forum, like sitepoint or webdeveloper, where you can post links. Or you can google for pastebin where you could post a link.

itKiwi

7:28 pm on Sep 13, 2006 (gmt 0)

10+ Year Member



Thanks icantthinkofone,
Your comment made me think again, so I've gone back to square one. There shouldn't be too much heartache ;-) You'll hear from me again, that's for sure.
Ciao.