1. Home
  2. Computing & Technology
  3. Web Design / HTML

border

By , About.com Guide

border Description:

The border property is a shorthand tag to define all the border style properties of an element.

border in CSS Versions:
border Syntax:

border: [ <border-width> || <border-style> || <color> ] | inherit

border Initial Value:

Not defined for shorthand properties.

border Applies To:

All elements.

border Inheritance:

This property is not inherited.

border Browser Support:
border Examples:

standard border

<p style="border : 2em solid #c00;">
This paragraph has a 2 em solid red border.
</p>
border Special Notes:
  • If you omit the color value, the color will be the same as the color value for the element.
More border Information:

Return to the Style Library

Explore Web Design / HTML
About.com Special Features

Holiday Central

What to eat, where to go, fun things to do and how to save money on the perfect gifts. More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

  1. Home
  2. Computing & Technology
  3. Web Design / HTML
  4. About.com Web Design A to Z
  5. Books
  6. About Web Design Book
  7. AWD: Chapter 12
  8. CSS Style Property: border>

©2009 About.com, a part of The New York Times Company.

All rights reserved.