Re: IE 6 and css

by "Lisa Bradshaw" <zibbler(at)web-design-cs.com>

 Date:  Tue, 26 Mar 2002 16:39:44 -0500
 To:  <hwg-techniques(at)hwg.org>
 References:  fredonia SMount2K pieceoshit
  todo: View Thread, Original
Because #FFF does NOT equal #0F0F0F. The legal shothand for CSS hex is if
each pair is the same. So, #9933FF could be written as #93F, which is NOT
equal to #09030F.  The following is from the W3C site:

4.3.6 Colors
A <color> is either a keyword or a numerical RGB specification.
The list of keyword color names is: aqua, black, blue, fuchsia, gray, green,
lime, maroon, navy, olive, purple, red, silver, teal, white, and yellow.
These 16 colors are defined in HTML 4.0 ([HTML40]). In addition to these
color keywords, users may specify keywords that correspond to the colors
used by certain objects in the user's environment. Please consult the
section on system colors for more information.

Example(s):


BODY {color: black; background: white }
H1 { color: maroon }
H2 { color: olive }

The RGB color model is used in numerical color specifications. These
examples all specify the same color:

Example(s):


EM { color: #f00 }              /* #rgb */
EM { color: #ff0000 }           /* #rrggbb */
EM { color: rgb(255,0,0) }      /* integer range 0 - 255 */
EM { color: rgb(100%, 0%, 0%) } /* float range 0.0% - 100.0% */

The format of an RGB value in hexadecimal notation is a '#' immediately
followed by either three or six hexadecimal characters. The three-digit RGB
notation (#rgb) is converted into six-digit form (#rrggbb) by replicating
digits, not by adding zeros. For example, #fb0 expands to #ffbb00. This
ensures that white (#ffffff) can be specified with the short notation (#fff)
and removes any dependencies on the color depth of the display.

You can read the whole artical here:
http://www.w3.org/TR/REC-CSS2/syndata.html#color-units

Lisa
***********************************
Lisa Bradshaw ,  Web Designer

Crescendo Web Design - http://www.web-design-cs.com
***********************************
----- Original Message -----
From: "Steve Mount" <steve(at)saltyrain.com>
To: "Lisa Bradshaw" <zibbler(at)web-design-cs.com>
Sent: Tuesday, March 26, 2002 4:18 PM
Subject: Re: IE 6 and css


> Why is #FFF short for #FFFFFF?  Why not #0F0F0F?  That would make a lot
more
> sense.  Of course, that would be easy to confuse with #F0F0F0, or #000FFF,
> or #FFF000, so in the end, the best bet will always to say what you mean
and
> type the extra three freaking F's.
>
>

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA