Re: problem importing style sheets

-----BEGIN PGP SIGNED MESSAGE-----

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

'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

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQB1AwUBNBmK8w/JhtXygIx1AQHTLQL/eLIfF2CzA1lTsJc82h1KmVOCwMUehiGz
JO2PSio22GKNZertXcPJLjzMfe9xFVFUKmekB3ALBrZ2wqxgK0/p/ewVDjPsvZa5
9nypHMOuUJVoc4xR6Gs2mChgiaxtRvS8
=wkEe
-----END PGP SIGNATURE-----

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