putting a body bg on the bottom

liunx

Guest
I have a background that I want to use for my webpage, but I need it to be at the bottom of the page. Right now it's at the top. Is there any way to code it in my stylesheet so that the background image is forced to the bottom?Hello, presuming you have a background-color, as well as the background image, you could use:


body {
background: #fff url('img.jpg') bottom left fixed repeat-x;
}


Customise to your requireemnts, as to the colours, filename, and what repeat option you need.

HTH ...Try
<style type="text/css">
body
{
background-image: url(image.jpg);
background-position: absolute;
bottom:0px;
}
</style>
 
Back
Top