Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

2.1.31 [CSS-Level2-2009] Section 8.5.4, Border shorthand properties: 'border-top', 'border-right', 'border-bottom', 'border-left', and 'border'

V0047:

The specification states:

 'border-top', 'border-right', 'border-bottom', 'border-left'
  
 Value:                 [ <border-width> || <border-style> || <'border-top-color'> 
 ] | inherit
 Initial:               see individual properties
 Applies to:            all elements
 Inherited:             no
 Percentages:           N/A
 Media:                 visual
 Computed value:        see individual properties
  
 This is a shorthand property for setting the width, style, and color of the top, 
 right, bottom, and left border of a box.

Quirks Mode and IE7 Mode (All Versions)

The inherit value of the border-top, border-right, border-bottom, and border-left properties is not supported.

V0048:

The specification states:

 'border'
  
 Value:                 [ <border-width> || <border-style> || <'border-top-color'> 
 ] | inherit
 Initial:               see individual properties
 Applies to:            all elements
 Inherited:             no
 Percentages:           N/A
 Media:                 visual
 Computed value:        see individual properties

IE7 Mode (All Versions)

The bottom border of an inline element is cut off below the baseline.

Show:
© 2015 Microsoft