Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Anchor to bottom of page

Status
Not open for further replies.

mdr227

Programmer
Nov 17, 2000
114
US
How can I anchor (using CSS or HTML) a division to the bottom of a page? If the content displayed on the page is less than the whole page length then I want the footer text/image to show at the bottom of the screen and not right below the content.
 
This is virtually impossible without JavaScript, because you need to determine the height of the browser window of the user. Search the posts here, it was discussed ad nauseum.
 
this will keep a div at the bottom of the viewport (browser window). However if the content is longer than the window it will still be at the bottom of the viewport not at the bottom of the content.

Code:
.fixed_btm {
	position:absolute;
	width:90%;
	bottom:1%;
	
}

Chris.

Indifference will be the downfall of mankind, but who cares?
A website that proves the cobblers kids adage.
Nightclub counting systems

So long, and thanks for all the fish.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top