We would like to know how to height: 100%; fill the full height.
<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
body {<!-- ww w . j a v a 2s. c o m-->
margin: 0;
}
html, body, .container {
height: 100%;
}
.container {
background: #f0f0f0;
}
.content {
padding: 20px;
}
</style>
</head>
<body>
<div class="container">
<div class="content">inner</div>
</div>
</body>
</html>
The code above is rendered as follows: