Border-top-style

The   property is used in CSS and certain HTML elements. It is used for setting the line style for the top side of the element's border. To set the line type for all four sides, use. To set the line type individually for the other sides, use,  , or.

Values

 * - No border; default value.
 * - Same as, except in terms of border conflict resolution for table elements.


 * - Series of short dashes or line segments.


 * - Series of dots.


 * - Two straight lines that add up to the pixel amount defined as.


 * - Carved effect.


 * - Makes the box appear embedded.


 * - Opposite of . Makes the box appear 3D (embossed).


 * - Opposite of . The border appears 3D (coming out).


 * - Single, straight, solid line.

HTML example:

TEXT

CSS example:

h1 { border-top:medium solid white; }