border size in css code example
Example 1: border width css
.element {
border-width: 2px;
}
Example 2: border width css
element {
border-width: 10px;
/* Or use shorthand border property */
/* width style colour */
border: 10px solid black;
}
Example 3: border width css
#some-div {
/* [WIDTH] [FILL MODE] [COLOR] */
border: 5px solid #f00;
/* draws solid a red line of 5px
between the padding (inside the div)
and the margin (outside the div) */
}