Tuesday, September 9, 2008

CSS Values - Strings

Some CSS properties take string values. A string value is enclosed in single or double quotes and can contain any text. Note that if the string has the single quote character in it then double quotes should be used to enclose the string and vice versa.
Unprintable characters can be represented using the escape character - backslash (\) followed by a hexadecimal number representing a Unicode character. The hexadecimal number must be followed by a space. However, if the character following the special character is not a, b, c, d, e, or f, then the space can be omitted.

No comments: