Border-style

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

Values
Up to four values can be given. The first value sets all four borders. The second sets the left and right. The third sets the bottom. The forth sets the left.


 * - 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:medium solid white; }