1 specification, for maximum readability.
System Color Keyword Compatibility
The support for these keywords is even less reliable than that provided for the
???regular??? color keywords. You should test your document extensively??”in different
browsers and different operating systems??”if you use them.
Numbers
A number can be specified either as an integer or a real number (one that contains
a decimal point), and can have an initial ?or
+ to indicate its sign. Numbers can
only be specified in decimal notation. For example, here??™s a line-height declaration
that uses a number value:
#example {
line-height: 1.5;
}
Strings
General Syntax and
Nomenclature
A string value must be enclosed in double or single quotes. So, to include a quote
inside a string, you??™ll need to escape it with a backslash character, like so:
ol#breadcrumbs:before {
content: "You are \"here\": ";
}
html {
font-family: 'Grey\'s Bold',serif;
}
The Ultimate CSS Reference 38
Of course, it??™s often easier to use the opposite quotation character around the
string??”if you need a double quote inside the string, surround the whole string with
single quotes, and vice versa:
ol#breadcrumbs:before {
content: 'You are "here": ';
}
html {
font-family: "Grey's Bold",serif;
}
If you want a string to contain characters that can??™t easily be typed from the keyboard,
characters that can??™t be expressed in the style sheet??™s character encoding, or
non-printable characters, you can represent those characters using CSS escape
notation (p.
Pages:
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88