From Web Education Community Group
< CSS‎ | Properties
Revision as of 11:23, 20 November 2011 by Rworth (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


The border-width property is a shorthand property for setting 'border-top-width', 'border-right-width', 'border-bottom-width', and 'border-left-width' at the same place in the style sheet.


Values <border-width>{1,4} | inherit
Initial value See individual properties
Applies to all elements
Inherited No


  • <border-width>{1,4}

  • inherit
    Takes the same specified value as the property for the element's parent.

And see also individual properties


Example A


 h1 {
   border-width: 1px 0px;
   border-style: solid;


    <h1>CSS border property example</h1>

Csslist2 border-width.png

CSS Reference

The CSS specification defines the border-width property in 8.5.1 Border width.

See also