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

css background image

Status
Not open for further replies.

rebnei

Technical User
Oct 16, 2003
5
GB
I am trying to use an image as a background, just 1 image centered on the page. I have tried using css (background category) but i just seem to get variations in tiling. I only seem to get part of the image and only the line where the curser is, why doesn't it apply to the whole page background? I have even tried using the code suggested in the FAQ's on this site, but i don't get anything at all then. Sure this must be something really simple - i just can't see it! Any help would be great. Thanx
 
if you want your image to appear only once and right in the centre of the screen you should be able to use...

.background {
background-image: url(images/background.gif);
background-repeat: no-repeat;
background-position-x: center;
background-position-y: center;
}

sorry if you've already tried this, but it works for me.

hope this helps,

ss...
 
Sorted it now, thanks for your help
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top