Question about backgroud and color.
In the includes/templates/your-custom-template/css/stylesheet.css, normally there is a code as below: body {margin: 0;font-family: verdana, arial, helvetica, sans-serif;font-size: 62.5%;color: #888787;background: #fff;}. I have a question what's the difference between "color" and "backgroud". Which one actually dicides the backgroud of the body?
Re: Question about backgroud and color.
Quote:
Originally Posted by
fanisme
In the includes/templates/your-custom-template/css/stylesheet.css, normally there is a code as below: body {margin: 0;font-family: verdana, arial, helvetica, sans-serif;font-size: 62.5%;color: #888787;background: #fff;}. I have a question what's the difference between "color" and "backgroud". Which one actually dicides the backgroud of the body?
color: relates to the font
background: (well, it's obvious, isn't it).
Go to w3schools.com for css tutorials.
Re: Question about backgroud and color.
I mean whether it's neccessary to set a background-color if there is alreay a background-image. People only see the background-image and the background will not appear.
Re: Question about backgroud and color.
A background-color can be useful or necessary if the background-image does not cover the whole element; or if you have a big image that will take measurable time to load, it can sometimes help the element to look ok until the image finishes loading. This should not be such an issue any more, as users expect pages to load fast anyway and don't want to wait for an image.