Open main menu

CDOT Wiki β

CSS GUIDE BORDER-TOP-WIDTH

Summary

This property is used to set the width of an element's top border.

  • Initial: medium
  • Applies to: all elements
  • Inherited: no
  • Percentages: N/A
  • Media: visual

Syntax

TARGET_ELEMENT{border-top-width: value;}

Legal Values

  • thin - thin top border
  • medium - medium top border
  • thick - thick top border
  • length - define the thickness of the top border

Mozilla Recommended Values

Usage Examples

table{border-top-width: medium;}
table{border-top-width: 0.5px;}
table{border-top-width: thin;}

Notes

Specification Conformance

Browser Compatibility

See Also