Prev | Current Page 113 | Next

Charles Wyke-Smith

"Stylin' with CSS: A Designer's Guide 2nd Edition"

If your style sheet states a {font-variant:small-caps;} so that all links are
in small caps and you want one special set of links to be in regular upper- and lowercase type, you might write a declaration
such as a.speciallink {font-variant:normal;}.
Font-Weight Property
Example: a {font-weight:bold;}
Possible values: 100, 200, and so on to 900, or lighter, normal, bold,
and bolder.
The W3C recommendations for implementing this property simply
state that each successive higher value (whether numerical or
???weight??? values) must produce boldness equal to or heavier than
the previous lower value.
bold and bolder give two weights of boldness. lighter allows you to
go one step in the other direction if you want a section within bold
type to be, well, lighter. At least, that??™s the idea.
Figures 3.11A??“D show a little test I ran on some different browsers.
Can you see more than two weights for any given browser among
these results? Nor can I. I even tried different fonts, but to no avail.
There really are only two results for all the font-weight values??”bold
or normal. Boldness variations would be a nice way to show a
hierarchy in all kinds of data, especially when you could easily generate
the different numerical values mathematically from middleware
code (for example, ASP or PHP) to automatically highlight
results that cross certain thresholds.


Pages:
101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125