Box Properties
An element's box is an important part of its display, and quite a few style properties work with the box.
border
CSS1 values: [<border-width>||<border-style>||<color>]
CSS2 values: inherit
Default value: Varies
Element support: All elements
Browser support: [IE4, IE5, IE6, NS4, NS6]
Style inherited: No
This shorthand property lets you set the border-width, border-style, and color for all four borders of a box at once. List values for those properties in that order. Of course, you can also set these properties individually.
border-top, border-right, border-bottom, border-left
CSS1 values: [<border-top/right/bottom/left-width>||<border-style>||<color>]
CSS2 values: inherit
Default value: Varies
Element support: All elements
Browser support: ...
Get Real World XML now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.