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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

getting image to stay at bottom of page instead of screen 1

Status
Not open for further replies.

TheCandyman

Technical User
Sep 9, 2002
761
US
I'm working on a page that has a large person image that i want to be fixed at the bottom of the page, not screen. It current stays in back of page text (which is good) but i can't force it to stay down. It instead stays at the bottom of the screen and in the middle of long pages. What should i change?

Example:
I tried changing the position to relative but the whole image shows below the page; top of image starts where bottom of page ends. What i'm shooting for is the bottom of that person image is aligned with the bottom of the while text area. Thoughts?

some css:
Code:
#body {
	font-size: .75em;
	margin: 0px;
	text-align: center;
	background: #01B6C9;
	color: #bfbfbf;
	height: 100%;
	min-height:100%;
	overflow-x: hidden;
	font-family: Verdana, Arial, Helvetica, sans-serif;
}
#page{
	position: relative;
	margin-left: 50px;
	width: 580px;
	text-align: left;
	font-size: 14px;
	color: #333;
	padding: 30px 0;
	z-index: 1;
}
#watch{
	position: fixed;
	bottom:0;
	width: 1419px;
	height: 656px;
	background: url(../img/watch_m.png) bottom left no-repeat;
}
 
get rid of position: fixed as that sets the image in an absolute position relative to the browser viewport.


just use background-position: right bottom;



Chris.

Indifference will be the downfall of mankind, but who cares?
Time flies like an arrow, however, fruit flies like a banana.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top