Css body bg image question
Posted: 10 January 2011 03:30 PM   [ Ignore ]
Newbie
Rank
Total Posts:  3
Joined  2011-01-10

Can someone tell me if there is any possible way I can set a 828 wide bg image for the body bg centered so when a viewer has their monitor set to anything wider then 828 the image stays centered and I specify a bg color for the rest of the page?

Profile
 
 
Posted: 06 February 2011 02:54 PM   [ Ignore ]   [ # 1 ]
Newbie
Rank
Total Posts:  14
Joined  2010-09-16

I really don’t understand what you are saying. But you can always make your background with a repeat image or have make a div that is always centered and has 828px width and but a background on that.

_______________________
jocuri 3d

Profile
 
 
Posted: 10 February 2011 03:04 AM   [ Ignore ]   [ # 2 ]
Newbie
Rank
Total Posts:  8
Joined  2009-07-31
body{
background
-image:url('sompic.gif');
background-position:center;

You just need to set your background-position to “center”

Profile