1. Home
  2. Computing & Technology
  3. Web Design / HTML

border-top-style

By , About.com Guide

border-top-style Description:

The border-top-style property defines the styles of the top border of the element.

border-top-style in CSS Versions:
border-top-style Syntax:

border-top-style: none | dotted | dashed | solid | double | groove | ridge | inset | outset | hidden | inherit

  • none
    No border displayed.
  • dotted
    A dotted line drawn above the background.
  • dashed
    A dashed line drawn above the background.
  • solid
    A solid line.
  • double
    A double line drawn above the background. The sum of the two single lines and the space between is the value of the border-width.
  • groove
    A 3-D groove drawn in colors based on the color property.
  • ridge
    A 3-D ridge drawn in colors based on the color property.
  • inset
    A 3-D inset drawn in colors based on the color property in separated borders model (CSS 2). Same as ridge in collapsing borders model.
  • outset
    A 3-D outset drawn in colors based on the color property in separated borders model (CSS 2). Same as groove in collapsing borders model.
  • hidden
    Same as none, but in the collapsing border model inhibits any other border (CSS 2).
  • inherit
    The element should have the same border-top-style setting as the parent.
border-top-style Initial Value:

none.

border-top-style Applies To

All elements.

border-top-style Inheritance:

This property is not inherited.

border-top-style Browser Support:

border-spacing Media Type

  • Visual
border-top-style Examples:

standard border-top-style

<p style="border-top-style : solid;">
This paragraph has a solid top border.
</p>
border-top-style Special Notes:
  • No borders are set unless the border style is set.

More border-top-style Information

Return to the Style Library

Explore Web Design / HTML
About.com Special Features

Holiday Central

What to eat, where to go, fun things to do and how to save money on the perfect gifts. More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

  1. Home
  2. Computing & Technology
  3. Web Design / HTML
  4. CSS
  5. Style Properties
  6. CSS Style Property: border-top-style>

©2009 About.com, a part of The New York Times Company.

All rights reserved.