Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2013
    Posts
    104
    Plugin Contributions
    0

    Default 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?

  2. #2
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,262
    Plugin Contributions
    3

    Default Re: Question about backgroud and color.

    Quote Originally Posted by fanisme View Post
    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.
    19 years a Zencart User

  3. #3
    Join Date
    Feb 2013
    Posts
    104
    Plugin Contributions
    0

    Default 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.

  4. #4
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default 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.

 

 

Similar Threads

  1. Replies: 14
    Last Post: 8 Mar 2014, 10:47 PM
  2. Replies: 2
    Last Post: 8 Jul 2010, 09:46 PM
  3. Upcoming Products Backgroud Color
    By dragon03kf in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 19 Mar 2009, 06:14 PM
  4. Color issue and login question
    By gifro10 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 2 Apr 2008, 09:50 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR