In CSS1, there are quite a few properties devoted to setting borders around element boxes, such as border-top-width and border-color, not to mention border itself. CSS2 adds a even more border properties, most of which are aimed at giving the author even more specific control of the borders. Before, it was difficult to set a specific color or style for a given side of the border, except through properties like border-left, and that could require more than one value. The new CSS2 properties address this, and their names are pretty self-explanatory:
border-top-color border-right-color border-bottom-color border-left-color border-top-style
6.1.1. Foreground Colors
Copyright © 2002 O'Reilly & Associates. All rights reserved.
11.1. Conversion Projects
Since we've covered the entirety of CSS1, let's exercise that newfound knowledge with three conversion projects. In each of these cases -- two of them web pages and one a print magazine article -- we'll break down the page into its components and determine the best way to recreate the same effects using CSS1 and structural HTML.fontIE4 P/Q IE5 P/Y NN4 P/P Op3 Y/-
11.1.1. Case 1: Consistent Look and Feel
The implication of offsetting the outer edges of a positioned elementis that everything about an element -- margins, borders, padding,and content -- is moved in the process of positioning the element.In other words, it is possible to set margins, borders, and paddingfor a positioned element. These will be preserved and kept with thepositioned element, and will be contained within the area defined bythe side-offset properties.
This is ashorthand property for the other font properties. Any of these valuesmay be omitted except for font-size andfont-family, which are always required for a validfont declaration. Note the following incorrect examples.