Browse documentation

Reference / Borders

Border width

Draw a rule on every edge or choose one axis, physical edge, or logical side.

Working example

Mono’s base styles give borders a solid style. When preflight is disabled, add border-solid to make a width visible.

HTML
<blockquote class="border-s-4 border-black ps-4 font-serif text-xl">
  Leave room in the margins.
</blockquote>

Class reference

ClassCSS declarations
borderborder-width: 1px;
border-0border-width: 0px;
border-2border-width: 2px;
border-xborder-inline-width: 1px;
border-b-2border-bottom-width: 2px;
border-s-4border-inline-start-width: 4px;
border-e-[3px]border-inline-end-width: 3px;
View full generated CSS
Compiled 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;
}