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
    Hertfordshire, UK
    Posts
    9,956
    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.
    Our latest project is Pet Tags.

  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,001
    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: 2
    Last Post: 8 Jul 2010, 09:46 PM
  2. Upcoming Products Backgroud Color
    By dragon03kf in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 19 Mar 2009, 06:14 PM
  3. Color issue and login question
    By gifro10 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 2 Apr 2008, 09:50 PM
  4. Question about MainWrapper and it wide
    By Haart in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 7 Aug 2006, 09:17 AM

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
  •