CSS BORDER TOP

From CDOT Wiki
Revision as of 17:09, 13 December 2006 by Mdsouza (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Summary

The border-top is a shorthand property for setting the width, style and color of top border of a box. This property can be used to set the values for one or more of: border-top-width, border-top-style, and border-top-color. Omitted values are set to their initial values.

  • Initial value: see individual properties for details
  • Applies to: all elements
  • Inherited: no
  • Percentages: N/A
  • Media: visual
  • Computed value: see individual properties

Syntax

border-top: [border-width || border-style || border-color | inherit] ;

Legal Values

border-width

border-style

border-color

Mozilla Recommended Values

Usage Examples

element { 
    border-top: 1px solid #000;
}

Notes

Specification Conformance

Browser Compatibility

See Also

border, border-top-width, border-top-style, and border-top-color