April 2005
Intermediate to advanced
336 pages
6h 33m
English
In the past chapters, you've seen me use borders to help you visualize CSS concepts. Here, I'll go into a bit more detail with you.
You can style borders based on their side, width, style, and color. Each of these uses a different border property: border-width, border-style, and border-color. You place the side of the border in between the two portions of the border property: border-left-color, border-right-style, and border-top-width. See the “order Shorthand” section of this chapter for a more streamlined approach to border properties.
Border widths can be specified using length values such as pixels or ems or keywords, which include thin, medium, and thick:
border-bottom-width: 2px;border-left-width: thick; ...
Read now
Unlock full access