Browse documentation
Reference / Borders
Border width
Draw a rule on every edge or choose one axis, physical edge, or logical side.
Working example
Leave room in the margins.
Mono’s base styles give borders a solid style. When preflight is disabled, add border-solid to make a width visible.
<blockquote class="border-s-4 border-black ps-4 font-serif text-xl">
Leave room in the margins.
</blockquote>Class reference
| Class | CSS declarations |
|---|---|
border | border-width: 1px; |
border-0 | border-width: 0px; |
border-2 | border-width: 2px; |
border-x | border-inline-width: 1px; |
border-b-2 | border-bottom-width: 2px; |
border-s-4 | border-inline-start-width: 4px; |
border-e-[3px] | border-inline-end-width: 3px; |
View full generated CSS
.border {
border-width: 1px;
}
.border-0 {
border-width: 0px;
}
.border-2 {
border-width: 2px;
}
.border-b-2 {
border-bottom-width: 2px;
}
.border-e-\[3px\] {
border-inline-end-width: 3px;
}
.border-s-4 {
border-inline-start-width: 4px;
}
.border-x {
border-inline-width: 1px;
}