O'Reilly logo

Real World XML by Steven Holzner

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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: ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required