Prev | Current Page 72 | Next

Tommy Olsson and Paul O'Brien

"The Ultimate CSS Reference"

Whitespace characters mustn??™t appear between the number and the %. For
example, here??™s a width declaration that uses a percentage value:
#example {
width: 50%;
}
7 http://www.bipm.org/en/publications/brochure/
33 General Syntax and Nomenclature
A percentage value is, by its nature, relative to something else. The interpretation
of percentages differs between CSS properties, so you??™ll have to use the reference
to find the specific property you??™re dealing with, and to identify what its stated
percentage value means. In some cases, the interpretation of percentage values can
be quite unexpected; for example, vertical padding refers to a percentage of the
width??”not height??”of the containing block.
Colors
Color values can be represented in several different ways in CSS.
Hexadecimal Notation
Hexadecimal RGB (red, green, blue) notation is perhaps the most common format.
It consists of a # character followed by three or six hexadecimal digits. When six
digits are provided, the first pair represents the red value, the second pair represents
the green value, and the last pair represents the blue value: #rrggbb.


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