我想让 class="content" 延伸到页脚。对于我的生活,我无法弄清楚。我已经尝试了许多已经发布的建议,但没有结果。
这是我到目前为止得到的:
我需要红色填充到页脚。有什么建议么?
HTML
<body>
<div class="top-wrapper">
<div class="header">
Header
</div>
<div class="navigation">
<div class="logo"></div>
<div class="menu">
Menu
</div>
</div>
<div class="content">
Test<br> Test<br> Test<br>
</div>
</div>
<div class="bottom-wrapper">
<div class="footer">
footer.
</div>
</div>
</body>
CSS
html
{
height: 100%;
}
body
{
height: 100%;
width: 100%;
margin: 0;
}
.top-wrapper
{
min-height: 100%;
}
.header
{
background-color:grey;
border-style: solid;
border-width: 0 0 2px 0;
border-color: #E5E529;
box-shadow: 0 0 6px #848484;
padding: 10px;
}
.navigation
{
width: 960px;
margin-left: auto;
margin-right: auto;
position: relative;
}
.content
{
background-color: red;
width: 960px;
margin-left: auto;
margin-right: auto;
overflow:auto;
padding-bottom: 152px;
border-style: solid;
border-width: 2px;
border-color: #E5E529;
}
.bottom-wrapper
{
background-color: blue;
border-style: solid;
border-width: 2px 0 0 0;
border-color: #E5E529;
box-shadow: 6px 6px 6px 6px #848484;
position: relative;
margin-top: -152px;
height: 150px;
clear:both;
}
.footer
{
padding: 10px 10px 10px 10px;
}
/* Menu CSS */
.logo
{
width: 250px;
height: 100px;
}
.menu
{
width: 710px;
margin-left: 250px;
position: absolute;
top: 41px;
background-color: green;
}