hey guys i used this
http://bonrouge.com/hcf-fluid.php
for my problem..its working but some small problems plzz help me out.
I am posting my css and html code'
this is css
-
html {height:100%;}
-
body {
-
margin:0;
-
padding:0;
-
height:100%;
-
background-color:orange;
-
}
-
#wrap {
-
width:90%;
-
margin-left:auto;
-
margin-right:auto;
-
min-height:100%;
-
position:relative;
-
border:1px solid silver;
-
padding-left:1px;
-
padding-right:1px;
-
}
-
* html #wrap {height:100%}
-
#inner-wrap {
-
background-color: blue;
-
padding-bottom:80px;
-
}
-
#inner-wrap:after {
-
content:" ";
-
display:block;
-
clear:both;
-
}
-
* html #inner-wrap {
-
height:1px;
-
}
-
#footer {
-
position:absolute;
-
bottom:0;
-
height:80px;
-
background-color: #333333;
-
width:100%;
-
padding:-10px;
-
}
-
#header {
-
height:80px;
-
background-color: #333333;
-
}
-
-
this is html
[HTML]<html>
<head>
<link rel="stylesheet" type="text/css" href="style1.css" />
<body>
<div id="wrap">
<div id="header">Header</div>
<div id="inner-wrap">
<div id="content">Content</div>
</div>
<div id="footer">Footer</div> </div>
</body>
</html>[/HTML]
wht the problem is that the blank portion where no content is there i.e the gap b/w the content and footer is taking the color of the body..how to make it not take the color.and yeah in the bottom of the page in the footer its not showing the right side border as its stretching full width .plzz have a look at code and tell wht changes shld be made.
and ya i did not understand the need for padding-bottom:80px in #inner-wrap should the padding set as the height of the footer and also the need for #inner-wrap:after
thanks,
Pradeep