MyBB Community Forums

Full Version: Content: min-height: 100%;
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How to make this work
#content {
	min-height: 100%;
}

It just doesn't work with % only with px any idea?
And what's the point of it? Your #content has already maximal height, so setting min-height to any percentage won't change anything.
Thanks D666 the thing is that sometimes when there is not enough content the page looks like creepy not full for instance: http://letsforum.com/misc.php?action=help&hid=1
There is like a portion of website missing and the background show looks terrible
Well, #content has nothing to do with it.

You need to follow this reply: http://stackoverflow.com/questions/67377...es#tab-top
So give <html> and <body> height: 100%; and then apply min-height: 100%; to #container.

Or something more complex like this: http://peterned.home.xs4all.nl/examples/csslayout1.html
D666 thanks very much buddy.
Can anybody check me please, because this is the only way it works?????

I have renamed body to html, body.

I use this code to set minimum height.

html,
body
height: 100%;


#container
height: 100%;


#content
min-height: 55%;


This is the only way to make it work, do you see something that can cause some issues to other functions?