Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

StyleSheets Question


Guest

Recommended Posts

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

Link to comment
Share on other sites

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

 

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.

Link to comment
Share on other sites

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.

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?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...