jigarshah
11-20-2006, 04:00 PM
Hi,
I want to have <div> element in such a way tht its always 100% of browser height.
So tht my footer always stick to bottom and does not resize.
here is actual test page
http://www.yourfreespace.net/users/jigarshah/trial.html
Thanks in advance
i also tried with
height:100%; instead of min-height:100%;(Not supported in IE)
still does not work
#container {
background:#f0f0f0 url(../images/images_blue/bodybg.jpg) repeat-x;
color:#303030;
margin:0;
padding:0;
text-align:left;
min-height:100%;
}
#footer {
background:#8b8b8b url(../images/footerbg.jpg) top left repeat-x;
clear:both;
color:#d0d0d0;
font-size:0.9em;
font-weight:bold;
margin:0;
padding:10px 0 10px;
text-align:center;
width:100%;
}
<body>
<div id="container">
Hi this is test
<div id="footer">
Hi this is footer
</div>
</div>
</body>
I want to have <div> element in such a way tht its always 100% of browser height.
So tht my footer always stick to bottom and does not resize.
here is actual test page
http://www.yourfreespace.net/users/jigarshah/trial.html
Thanks in advance
i also tried with
height:100%; instead of min-height:100%;(Not supported in IE)
still does not work
#container {
background:#f0f0f0 url(../images/images_blue/bodybg.jpg) repeat-x;
color:#303030;
margin:0;
padding:0;
text-align:left;
min-height:100%;
}
#footer {
background:#8b8b8b url(../images/footerbg.jpg) top left repeat-x;
clear:both;
color:#d0d0d0;
font-size:0.9em;
font-weight:bold;
margin:0;
padding:10px 0 10px;
text-align:center;
width:100%;
}
<body>
<div id="container">
Hi this is test
<div id="footer">
Hi this is footer
</div>
</div>
</body>