If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / Question about backgroud and color.

Question about backgroud and color.

Started by fanisme on 5 Apr 2013, 9:16 AM · Views: 570

Results 1 to 4 of 4
5 Apr 2013, 9:16 AM
#1
fanisme avatar

fanisme

Zen Follower

Join Date:
Feb 2013
Posts:
104
Plugin Contributions:
0

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?

5 Apr 2013, 9:26 AM
#2
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Question about backgroud and color.

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.

20 years a Zencart User

7 Apr 2013, 9:17 PM
#3
fanisme avatar

fanisme

Zen Follower

Join Date:
Feb 2013
Posts:
104
Plugin Contributions:
0

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.

7 Apr 2013, 9:24 PM
#4
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

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.