I need to make a border like this image
Anyone have an idea to make it? I tried with :after and :before attributes of css but with no sucess. The html tag is a h1 that needs that kind of border on the bottom. Is it possible to make it?
pseudo-elements!
div {
border-bottom: 2px solid black;
padding-bottom: 15px;
position: relative;
}
div:before,
div:after {
position: absolute;
bottom: -6px;
left: 0;
height: 10px;
width: 10px;
background: black;
content: "";
border-radius: 5px;
}
div:after {
right: 0;
left: auto;
}
Fiddle: http://jsfiddle.net/GVb59/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With