The border-style
property specifies the line style for all four sides of an element's border. It is a shorthand for top, right, bottom, and left border style respectively. When one value is specified, it applies the same border style to all four sides. There are various border style values, such as solid
, dashed
, dotted
, double
, groove
, etc.
Setting a dashed border for all four sides of a <h1>
element.
h1 { border-style: dashed; }
Setting different borders on each side of a <h1>
element.
h1 { border-style: dotted solid dashed double; }
border-style: value;
For more information, see http://www.w3schools.com/cssref/pr_border-style.asp
Found a bug in the documentation? Let us know at documentation@code.org