Ways To Stick Footer To The Bottom A Page
I followed the How do you get the footer to stay at the bottom of a Web page? post on stackoverflow... But i couldn't make it too work in an asp.net web application.... I am using
Solution 1:
I suggest to use a div like
<div id="Footer"> content </div>
then in your css put this
#Footer
{
position: absolute;
bottom: 0px;
height: 3px;
background-color: #666;
color: #eee;
}
or you can use AjaxControlToolkit library
I Also strongly recommand you change your layout from Table to div
Solution 2:
I'm would also recommend a div structure using floating.
Markup:
<divclass="bodyWrap"><divclass="header"><!-- Insert content here --></div><divclass="content"><!-- Insert content here --></div><divclass="footer"><!-- Insert content here --></div><divstyle="clear:both"></div></div>
Css:
.bodyWrap
{
width: 500px;
}
.header, .content, .footer
{
width: 100%;
float:left;
}
Solution 3:
I liked below better. It only works with an id and not with a class.
<div id="Footer"> content </div>
#Footer {
position: fixed;
bottom: 0px;
}
Post a Comment for "Ways To Stick Footer To The Bottom A Page"