The following are examples of how to read the syntax shorthand. The first example is of the line-height property.
In this case, there is only one value, but it can be either the keyword normal or a number, length, or percentage. Here are some example style rules that use the property: P.intro { line-height: 14pt } DIV.warning { line-height: normal } H1, H2, H3 { line-height: 1.0 } H4 { line-height: 120% } The second example comes from the text-decoration property, which we discussed in Chapter 5. This example uses the single vertical bar, double vertical bar, and regular brackets.
This is interpreted as follows:
Thus, there is a large number of possible values. Here are some of them:
Because the order of the keywords doesn't matter for the text-decoration property, there are really only 15 different decorations you can set with it, but you can write some of them in more than one way. |