W3C home > Mailing lists > Public > www-style@w3.org > September 1997

Re: problem importing style sheets

From: Liam Quinn <liam@htmlhelp.com>
Date: Fri, 12 Sep 1997 14:33:24 -0400
Message-Id: <>
To: GM Chenier <gchenier@cognita.com>
Cc: "'www-style@w3.org'" <www-style@w3.org>

At 09:44 AM 12/09/97 -0400, GM Chenier wrote:
>For the BODY selector, you need to change the property that you are
>using -- it should be:
>background-color: #993300
>       NOT
>background: #993300 
>I've made that mistake myself. Don't assume that the attribute names
>that we are accustomed to in HTML are the same for style sheet

'Background' is a perfectly valid property [1], and its use above is also 
valid.  'background: #993300' is actually a shorthand for the following 
declaration block:

background-color: #993300;
background-image: none;
background-repeat: repeat;
background-attachment: scroll;
background-position: 0% 0%

Since 'background: #993300' implicitly sets 'background-image' to 'none', 
it's actually better than 'background-color: #993300'; the shorthand 
version would override any background image in the user's style sheet (the 
user's image may leave text unreadable against the author's colour 
scheme).  As well, 'background' is more widely supported since MSIE3 
supports it but not the individual 'background-*' properties.

[1] http://www.w3.org/TR/REC-CSS1#background

Version: PGP for Personal Privacy 5.0
Charset: noconv


Liam Quinn
===============  http://www.htmlhelp.com/%7Eliam/  ===============
Web Design Group            Enhanced Designs, Web Site Development
http://www.htmlhelp.com/    http://enhanced-designs.com/
======  PGP Key at http://www.htmlhelp.com/%7Eliam/pgp.html  =====
Received on Friday, 12 September 1997 14:32:47 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:26:44 UTC