Guys, how do you do this in CSS/HTML
I'm currently using this CSS and HTML but in some parts of the website its not pushed to the bottom;
HTML:
CSS:Code:<div id='footer'> <div class="footer"> <br>Powered by <a href="http://www.fusionstrike.co.uk/live.html"><font color="#ffffff">Fusion Strike; Live!</font></a> | <a href="http://www.fusionstrike.co.uk"><font color="#ffffff">Fusion Strike</font></a> © 2010 | Build 1250<br> <?php putenv("TZ=Europe/London"); echo "All times are GMT+. The time is now: " . date(" h:i A").""; ?> </div> </div>
Code:#footer { font-family: Arial; font-size: 8pt; text-align: center; color: #000; } .footer, .push { height: 4em; background-color: #000000; color: #ffffff; }
I think I understand what you need to do, but if I'm wrong I do apologise.
Replace any code you've used to try push the .footer to the bottom, and try using this:
Code:.footer { position: absolute; /* this positions the .footer selector anywhere we tell it to, irrespective to other elements "space" */ bottom: 0; /* this pushes the element to the bottom */ }
Heres a easy solution, Create a div for all the content above the footer, then it should work![]()
It depends on what you're trying to do. Do you want a footer at the bottom of the web page? If so, you should use absolute positioning (position: absolute; bottom: xpx.
Life's too short to be cool. Be a nerd.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks