Force a div tag to the bottom of the page?

Soldato
Joined
27 Aug 2004
Posts
17,111
Location
Geordieland
Ive got a footer at the bottom of my webpage that i want to force onto the bottom of the page, so far ive been unsuccessful. Ive tried floating it and V aligning it, but nothing will work.

CSS

Code:
/*Style for the footer of the webpage*/
#footer		{

		background-color: black;
		color: white;
		font-style: italic;
		text-align:right;
		font-size: 15px;
		border: 2px solid gray;
		}

HTML

Code:
<!--start copyright bar-->
<div id="footer">
	Copyright One Hump or Two
<!--End footer div-->

Cheers for any help
 
it's done on arnoldclark.com

i haven't had a chance to work out how it's done. looks like you'll need to plug through a bit of code to get at it.
 
Not sure whether it's related - I'm no expert so don't shoot me :p but you haven't closed the footer div with a </div> going on the posted code
 
this seems to be code off arnoldclark that's forcing the div at the bottom of the screen, although, i haven't tested it .. could be anything as there's a stack of code

Code:
#wf_footer { height:40px; bottom:0px; position: fixed; width: 600px; margin-left:140px; z-index:1000; }
 
Back
Top Bottom