property
border — CSS reference
Sets all four physical borders. Omitted components reset to medium, none and currentColor. Also resets border-image to its initial state. A width alone is invisible when style is none.
Formal Syntax & Structure
css syntaxcss
<line-width> || <line-style> || <color>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-image:linear-gradient(red,blue) 1;border:4px solid #245a60}</style><body><div id="a" class="sample">Sample</div></body></html>