HTML and CSS Reference
Given these rules, the following declarations are synonymous and display a solid
border on the top and bottom of an element:
border-style: solid none solid none;
border-style: solid none solid;
border-style: solid none;
To render all border sides in the same style, only a single style value needs to be specified.
The border-style property has four subproperties that can also be used to target
each border side's style.
The border-width property, which controls the width of borders, can be set with a unit
of length or with one of the predefined values: thin , medium , or thick . The initial value is
medium , which is typically rendered as 3 pixels.
border-width (1-4) | border-top-width |
border-right-width | border-bottom-width |
<length> | thin | medium | thick
As with border-style , this property can have one to four values and has four
subproperties for setting the individual borders' width.
/* Shortcut property */
border-width: thin medium;
/* Full-length properties */
A width of zero means that no border is displayed. This value has the same effect as
setting the style of the border to none .