Prev | Current Page 74 | Next

Tommy Olsson and Paul O'Brien

"The Ultimate CSS Reference"


Keywords
Colors can also be represented by the keywords listed in Table 2.3.
Table 2.3: Color Keywords
Color Value Keyword
#00ffff aqua
#000000 black
#0000ff blue
#ff00ff fuchsia
#808080 gray
#008000 green
#00ff00 lime
#800000 maroon
#000080 navy
#808000 olive
#ffa500 orange (added in CSS 2.1)
#800080 purple
#ff0000 red
8 Gecko is used by Firefox, Mozilla, and Camino, among others.
9 WebKit is used by Safari.
Color Value Keyword
#c0c0c0 silver
#008080 teal
#ffffff white
#ffff00 yellow
Color Keyword Compatibility
Support for color keywords differs between browsers so, to be on the safe side, it??™s
best to use the numeric or functional notation. The use of keywords for colors is
also disallowed by the Web Content Accessibility Guidelines (WCAG) 1.0.10
35 General Syntax and Nomenclature
Finally, you can use the keywords listed in Table 2.4 to specify system
colors??”various colors that are used by the operating system and/or window manager,
and can be applied when you want to create a ???native application??? look and feel.


Pages:
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86