We would like to know how to make full width footer.
<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
* {<!-- ww w . ja v a 2 s. c om-->
margin: 0;
padding: 0;
}
html, body {
height: 100%;
min-height: 100%;
}
#background {
min-height: 100%;
height: auto !important;
min-width: 960px;
padding-left: 1px;
position: relative;
}
#container {
margin: 0 auto;
padding-bottom: 160px;
min-height: 100px;
overflow: hidden;
width: 960px;
z-index: 10;
}
#content {
height: 160px;
background: yellow;
margin: 35px auto 0;
width: 738px;
z-index: 10;
}
#footer {
background: green;
height: 160px;
margin: 0 auto;
margin-top: -160PX;
position: absolute;
text-align: center;
width: 100%;
bottom: 0;
left: 0;
}
</style>
</head>
<body>
<body>
<div id="background">
<div id="container">
<div id="content">
<p>Page Content</p>
</div>
</div>
<div id="footer">
<p>Footer</p>
</div>
</div>
</body>
</body>
</html>
The code above is rendered as follows: