make border smaller css code example
Example 1: border width css
.element {
border-width: 2px;
}
Example 2: border width css
element {
border-width: 10px;
border: 10px solid black;
}
Example 3: how to set border length in css without div
div {
width : 200px;
height : 50px;
position: relative;
z-index : 1;
background: #eee;
}
div:before {
content : "";
position: absolute;
left : 0;
bottom : 0;
height : 1px;
width : 50%;
border-bottom:1px solid magenta;
}
Example 4: box sizing border box
*{
box-sizing: border-box;
}