I wish to create a [
and ]
bracket just with CSS. Is there a way to specify the top and bottom border (Without slicing the image) so it looks like a bracket?
.bracket {
border-top:20px;
border-bottom:20px;
border-right:none;
border-left: 1px solid black;
}
.b:after {
content: "]"
}
.b:before {
content: "["
}
<span class="b">text</span>
working example: http://codepen.io/yardenst/pen/bhGIy
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