Skip to Content


CSS Reference / border-top

border-top

A shorthand property for setting the width, style and color of an element's top border.

Values:

Examples:

  1. border-top: thin;
  2. border-top: 2px solid;
  3. border-top: thick dotted black

Browser support:

  • Internet Explorer 4+
  • Netscape 6+
  • Opera 3.6+

Related properties:

back to list



Search

Sponsors

Logo design for $149

Advertise here