I feel like this should be obvious to find but I have not come up with anything. Bootstrap 4 has utility class for adding and removing a border, but is there support for defining the border width or style like solid or dashed?
<span class="border"></span>
<span class="border-top"></span>
<span class="border-right"></span>
<span class="border-bottom"></span>
<span class="border-left"></span>
There are some classes that changes the margins and padding such as mr-3
and pt-2
.
Maybe I just need to define them myself?
No, there are no classes in Bootstrap 4 for border width or style.
You can simply add something like:
.border-3 {
border-width:3px !important;
}
https://codeply.com/go/ktnEeWExvh
NOTE: !important
is needed in this case because Bootstrap also uses !important in many of the utility classes like border-*
.
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