I think we need to find a solid solution for this problem - on the internet, there does not seem to be one.
The DIV will always stay the height of its content - and not more.
The structure is like this:
<html>
<head>
<title>myPage</title>
</head>
<body>
<div id='container'>
Some Content...
</div>
</body>
</html>
CSS usually looks like this:
body {
height: 100%;
}
div#container {
height: 100%;
width: 100%;
}
There are already tricks with setting margin or/and padding on body or/and div, but nothing seems to work really fine.
Is there a one and only solution for this problem?
html, body, div#container{
min-height: 100%;
height: 100%;
}
May be this will help?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With