September 2001
Intermediate to advanced
640 pages
31h 42m
English
border-style
This property sets the style of border for an element box. The
different styles are illustrated in Figure 17-3. A
single value will result in a box with the same style border on all
four sides. More than one value will be interpreted as described for
the margin property (top, right, bottom, left).
The example given would create a box with a solid line on the top and
bottom and with dashed rules on the left and right sides.
none|dotted|dashed|solid|double|groove|ridge|inset|outset
P.example{border-style: solid dashed}All elements
Yes

Figure 17-3. Potential border styles
Read now
Unlock full access