Width can be defined using a specific size unit (such as px, pt, cm, em, etc.) or by utilizing one of the three pre-defined values: thin, medium, or thick.
Example
Displaying various border widths.
p.one { border-style: solid; border-width: 5px; } p.two { border-style: solid; border-width: medium; } p.three { border-style: dotted; border-width: 2px; } p.four { border-style: dotted; border-width: thick; } |
Outcome:
The border-width property can accept between one to four values, corresponding to the top, right, bottom, and left borders.
Example
p.one { |