Border width
border-width property. It controls the width of an element’s border. value can be set to one of the following:0sm(0.0625rem)md(0.125rem)lg(0.25rem)xl(0.375rem)
| CSS Shortcut class | Applied style |
|---|---|
| |
| |
| |
| |
| |
| |
| |
Examples
All side
b-<value>
This element has a border width of 0 on all sides.
<p class="b-0">
This element has a border width of 0 on all sides.
</p> Top side
bt-<value>
This element has a small border on the top side.
<p class="bt-sm">
This element has a small border on the top side.
</p> Bottom side
bb-<value>
This element has a medium border on the bottom side.
<p class="bb-md">
This element has a medium border on the bottom side.
</p> Right side
be-<value>
This element has a large border on the right side.
<p class="be-lg">
This element has a large border on the right side.
</p> Left side
bs-<value>
This element has an extra large border on the left side.
<p class="bs-xl">
This element has an extra large border on the left side.
</p> Horizontal sides
bx-<value>
This element has a small border on the left and right sides.
<p class="bx-sm">
This element has a small border on the left and right
sides.
</p> Vertical sides
by-<value>
This element has a large border on the top and bottom sides.
<p class="by-lg">
This element has a large border on the top and bottom
sides.
</p> xs:> 480pxsm:> 640pxmd:> 768pxlg:> 1024pxxl:> 1280px
<div class="xs:b-sm ...">
...
</div> hoverfocus
<div class="hover:b-sm ...">
...
</div>