Skip to main content

Border Width

Utilities for controlling the width of an element's borders.

CSS Property:border-width
Classes:32

Border Width Classes

ClassCSS
border-0border-width: 0px;
borderborder-width: 1px;
border-2border-width: 2px;
border-4border-width: 4px;
border-8border-width: 8px;
border-x-0border-left-width: 0px; border-right-width: 0px;
border-xborder-left-width: 1px; border-right-width: 1px;
border-x-2border-left-width: 2px; border-right-width: 2px;
border-x-4border-left-width: 4px; border-right-width: 4px;
border-y-0border-top-width: 0px; border-bottom-width: 0px;
border-yborder-top-width: 1px; border-bottom-width: 1px;
border-y-2border-top-width: 2px; border-bottom-width: 2px;
border-y-4border-top-width: 4px; border-bottom-width: 4px;
border-s-0border-inline-start-width: 0px;
border-sborder-inline-start-width: 1px;
border-s-2border-inline-start-width: 2px;
border-e-0border-inline-end-width: 0px;
border-eborder-inline-end-width: 1px;
border-e-2border-inline-end-width: 2px;
border-t-0border-top-width: 0px;
border-tborder-top-width: 1px;
border-t-2border-top-width: 2px;
border-t-4border-top-width: 4px;
border-r-0border-right-width: 0px;
border-rborder-right-width: 1px;
border-r-2border-right-width: 2px;
border-b-0border-bottom-width: 0px;
border-bborder-bottom-width: 1px;
border-b-2border-bottom-width: 2px;
border-l-0border-left-width: 0px;
border-lborder-left-width: 1px;
border-l-2border-left-width: 2px;

Arbitrary Values

You can use arbitrary values with square bracket notation when you need a specific value not included in the default scale.

[border-width:value]

Responsive Variants

Apply border width utilities at specific breakpoints using responsive prefixes.

BreakpointPrefixExample
640px+sm:sm:border-0
768px+md:md:border-0
1024px+lg:lg:border-0
1280px+xl:xl:border-0
1536px+2xl:2xl:border-0