property
border-width — CSS reference
Sets width for four physical border edges using one to four clockwise values, following margin shorthand expansion. Initial medium; not inherited. Computed width is zero if style is none or hidden. Keyword widths are UA-defined.
Formal Syntax & Structure
css syntaxcss
<line-width>{1,4}Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>CSS box geometry lab</title><style>body {margin:0} .sample {background:#dcebe9;color:#182e32}#a{border:6px solid black;border-width: 2px 3px 4px 5px}</style><body><div id="a" class="sample">Sample</div></body></html>