|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Please Help with 100% Height Layout
At my website, http://thrended.functionhost.com, I would like the main body text to be inside a div box (or other scrollable element) that would be a height of 100% - 100px. I'm not really sure how to do this though. I've tried a few things but they didn't work as I wanted and some required Javascript which would be okay if it worked but not prefered since not all browsers support it. I also tried simply adding html{height:100%}, but this made the page look really weird with repeating backgrounds of the top and bottom table rows. I would like the text to be scrollable instead of the whole page so that the viewer doesn't have to scroll up to use the folder navigation. If you know of a way to do this, please help me out; I appreciate any that you can offer. Thank you.
Last edited by thrended : February 19th, 2004 at 09:30 PM. Reason: Changed Title + Specifaction |
|
#2
|
||||
|
||||
|
Does anyone know how to do this? Please help if you can.
![]() |
|
#3
|
||||
|
||||
|
Re Div height
Quote:
Not really sure what you're asking. Had a look at your site and you've got a div element there with a scroll using overflow:auto so you appear to know how to do that already. What do you want it to be 100% of???? The div element itself??? The entire page??? Will help if I can but need more info. |
|
#4
|
||||
|
||||
|
Quote:
I want the whole page to take up one hundred percent of the page height. Here's an example: http://jspevak.buildtolearn.net/sam.../thrended1.html The only problem is that if the content is too big to fit the page, you'll have to scroll anyway. I would like it so that the page would always fit one hundred percent and the text inside the page would scroll by itself, with the outside border and folders staying where they are. Note that the images don't display on the sample pages because I configured .htaccess so that you can't view my images and stuff at anywhere other than my site, and you can't download them either (or at least I think that's the reason; before I changed .htaccess, it worked). Last edited by thrended : February 22nd, 2004 at 06:20 PM. Reason: Added stuff |
|
#5
|
||||
|
||||
|
So? Are you able to help?
![]() |
|
#6
|
|||
|
|||
|
<style type="text/css">
#main { height: 100%; } </style> <html> <div ID="main"> stuff.... </div> </html> |
|
#7
|
||||
|
||||
|
Quote:
Have you seen http://thrended.functionhost.com? I don't just want the whole page to be scrollable, I mean, the body text with the content and stuff, excluding the folders and border! o.o Sorry, it's just that people never seem to understand me even though I'm usually pretty clear. |
|
#8
|
|||
|
|||
|
Using the "height" element in CSS is sketchy at best. You can't rely on it at all. You'd be better off finding another solution.
|
![]() |
| Viewing: Dev Shed Forums > Web Design > Web Design Help > 100% Height Div Layout |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|