Guest Posted November 21, 2004 Posted November 21, 2004 Could someone please tell me what the syntax is to insert a background color & image into the body section of stylesheet.css I currently have BODY { background: #000000; color: #000000; margin: 0px; } which changes the color, but now how do I change the color & add a bg image? thanks; Jeff
Guest Posted November 21, 2004 Posted November 21, 2004 Could someone please tell me what the syntax is to insert a background color & image into the body section of stylesheet.css I currently have BODY { background: #000000; color: #000000; margin: 0px; } which changes the color, but now how do I change the color & add a bg image? thanks; Jeff <{POST_SNAPBACK}> BODY { background: #000000 url(imagefolder/imagename.gif) fixed no-repeat; color: #000000; margin: 0px; } The bit in red above is how I have done one for a site I am working on at the moment.
Guest Posted November 21, 2004 Posted November 21, 2004 BODY { background: #000000 url(imagefolder/imagename.gif) fixed no-repeat; color: #000000; margin: 0px; } The bit in red above is how I have done one for a site I am working on at the moment. <{POST_SNAPBACK}> You can also use this: BODY { background: #000000 url(imagefolder/imagename.gif) fixed no-repeat; background-position: center; <- does exactly what it says in the rule! color: #000000; margin: 0px; } however, it is not supported by Netscape 4, but then again, what is?
Guest Posted November 21, 2004 Posted November 21, 2004 ...however, it is not supported by Netscape 4, but then again, what is? <{POST_SNAPBACK}> hehehehe...good point! :)
Recommended Posts
Archived
This topic is now archived and is closed to further replies.