mirror of
https://github.com/tailwindlabs/tailwindcss.git
synced 2025-12-08 21:36:08 +00:00
2.4 KiB
2.4 KiB
| extends | title | description | features | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| _layouts.documentation | Border Width | Utilities for controlling the width an element's borders. |
|
@include('_partials.work-in-progress')
Add borders to any element using the .border{-side?}{-width?} syntax.
For example, .border would add a 1px border to all sides of the element, where .border-b-4 would add a 4px border to the bottom of the element.
Class
borderSide (optional)
All (default)t Topr Rightb Bottoml LeftWidth (optional)
0 0px 1px (default)2 2px4 4px8 8pxCustomizing
@include('_partials.variants-and-disabling', [ 'utility' => [ 'name' => 'border width', 'property' => 'borderWidths', ], 'variants' => [ 'responsive', ], ])