
Untitled
By: a guest on
Jul 20th, 2012 | syntax:
None | size: 0.84 KB | hits: 10 | expires: Never
Footer will not use 100% of width
#header {
padding:5px;
/* width: 100%; */
background-color:#272727;
height:100px;
margin-bottom:30px;
-webkit-box-shadow: 0 8px 6px -6px black;
-moz-box-shadow: 0 8px 6px -6px black;
box-shadow: 0 8px 6px -6px black;
}
*, html, body { margin: 0px; padding: 0px; }
<html>
<body>
<div id="wrapper">
<div id="footer">
Hii
</div>
</div>
</body>
</html>
body{
background:red;
width:100%;
height:100%;
padding:0;
margin:0;}
#wrapper{background:green;
width:100%;
padding:0;
height:100%;
margin:0;
position:absolute;}
#footer {
background:#272727;
width:100%;
height:40px;
position:absolute;
bottom:0;
left:0;
margin-top:20px;
-webkit-box-shadow: 0 0px 20px black;
-moz-box-shadow: 0 0px 20px black;
box-shadow: 0 0px 20px black;
}