Properties are used to give a style to the elements selected using the style rule selectors. We will describe the following groups of properties:
Many properties represent lengths or colors. There are different units to specify length, both absolute such as inches, centimeters, millimeters, points, and picas, and relative, such as ems, exes, pixels, and percentages. Absolute units are appropriate for printed media, while relative ones are good for screen media, since they are relative with respect to the resolution of the monitor.
Color can be specified in different ways:
Here is an example:
dish {color: red;} /* by name */ quantity {color: #00FF00;} /* by components in hexadecimal */ component {color: rgb(0,0,255);} /* by components in decimal */ step {color: rgb(20%,20%,20%);} /* by components with percentages */