1 reply [Last post]
JakeTheSnake
JakeTheSnake's picture
User offline. Last seen 1 year 36 weeks ago. Offline
newbie
Timezone: GMT-4
Joined: 2010-09-08
Posts: 1
Points: 2

I'm having trouble with getting my content to have a minimum height of 100%. I want the body to be scrollable, so I can't just set the body's height to be 100% either. I've set it via min-height, but that isn't inherited by the content div. Please see this post for details.

Hugo
Hugo's picture
User offline. Last seen 4 hours 30 min ago. Offline
rank Moderator
Moderator
Timezone: GMT+1
Joined: 2004-06-06
Posts: 15197
Points: 2300

You perhaps should read

You perhaps should read through this:
http://csscreator.com/node/20471

and possibly any other threads that have discussed this topic over the years.

As a rule one sets html,body to height:100% and first child element to min-height /height:auto with fixes for IE < 7

It's best to explain issues in the actual thread rather than link us off to another thread you have made elsewhere.

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me