[RESOLVED] scrolling content div with browser scrollbar
I've been fighting with this for a while now. I'm getting close, but there a just a few quirks I cannot get figured out. I have a centered set-width div with a header, left side nav, and right side content. I want the content to scroll with the browser scrollbar and everything else to stay in place (ie fixed). It's mostly working. I have 10px of margin above the header and my scrolling content should not be able to be seen above the header when it goes up there. I want the whole wrap div to be set to auto height according to the content div with a min-height so it goes down to at least the bottom of the navigation links. But when the content gets longer than the bottom of the window, I want it to have a 10px margin from the bottom of the window and then auto-scroll the content.
Any help would be greatly appreciated.
Thanks
Mike
First off, I was going to suggest that you add closing slashes to your meta, link, and img tags (to make it validate), but you've done that since I last looked at your page!
Try replacing the first part of your css with this:
to your html right before you close the #wrap div.
Sincerely,
Mr. Baggins
I don't know half of you half as well as I should like; and I like less than half of you half as well as you deserve.
- Bilbo Baggins in The Fellowship of the Ring
2. The styles I proposed will require that the webpage be always the height of the browser window; no less, even if the content is less.
Mr. Baggins
I don't know half of you half as well as I should like; and I like less than half of you half as well as you deserve.
- Bilbo Baggins in The Fellowship of the Ring
Bookmarks