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

Image at absolute bottom of webpage

Status
Not open for further replies.

mark01

Technical User
Jan 17, 2001
600
US
Hi, does anyone know how to center an image at the absolute bottom of a webpage. I don't want a white space between the image, and the border of the browser...

Thanks.
 
Code:
<style type="text/css">

body {
   background:url(myImage.jpg) bottom center no-repeat;
}

</style>

-kaht

Looking for a puppy? [small](Silky Terriers are hypoallergenic dogs that make great indoor pets due to their lack of shedding and small size)[/small]
 
Thanks, will this work if I already have a body background image that is centered to repeat?
 
Nope, but you can always add a div to be the first child element under the body - and then apply the background style to it.

-kaht

Looking for a puppy? [small](Silky Terriers are hypoallergenic dogs that make great indoor pets due to their lack of shedding and small size)[/small]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top