border-style

Class Description

border-solid

Sets border-style: solid.

CSS Rules

.border-solid {
  --tw-border-style: solid;
  border-style: solid;
}

Usage

<element class="border-solid" />

Responsive

Prefix .border-solid utility with a breakpoint variant (e.g., md:) to apply styles at specific screen sizes (Supported breakpoints are xm through 2xl).

<element class="md:border-solid" />

States

States are generated dynamically at runtime and always come last. Append a state like :hover or :focus to the end of the class. This works in conjunction with breakpoints .

Supported pseudo-classes: :hover, :active, :focus, :focus-visible, :focus-within, :target, :checked, :disabled, and :group-hover.

<element class="border-solid:hover" />

Group Hover Example

The :group-hover state applies styles when a parent element with the .group class is hovered.

<element class="group">
  <element class="border-solid:group-hover">...</element>
</element>

Pseudo-Elements

The ::before and ::after utility classes are supported too. Granted that you add the mandatory content-before or content-after class in order for them to work.

<element class="content-before border-solid::before" />

<element class="content-after border-solid::after" />
.border-solid Sets border-style: solid.

border-dashed

Sets border-style: dashed.

CSS Rules

.border-dashed {
  --tw-border-style: dashed;
  border-style: dashed;
}

Usage

<element class="border-dashed" />

Responsive

Prefix .border-dashed utility with a breakpoint variant (e.g., md:) to apply styles at specific screen sizes (Supported breakpoints are xm through 2xl).

<element class="md:border-dashed" />

States

States are generated dynamically at runtime and always come last. Append a state like :hover or :focus to the end of the class. This works in conjunction with breakpoints .

Supported pseudo-classes: :hover, :active, :focus, :focus-visible, :focus-within, :target, :checked, :disabled, and :group-hover.

<element class="border-dashed:hover" />

Group Hover Example

The :group-hover state applies styles when a parent element with the .group class is hovered.

<element class="group">
  <element class="border-dashed:group-hover">...</element>
</element>

Pseudo-Elements

The ::before and ::after utility classes are supported too. Granted that you add the mandatory content-before or content-after class in order for them to work.

<element class="content-before border-dashed::before" />

<element class="content-after border-dashed::after" />
.border-dashed Sets border-style: dashed.

border-dotted

Sets border-style: dotted.

CSS Rules

.border-dotted {
  --tw-border-style: dotted;
  border-style: dotted;
}

Usage

<element class="border-dotted" />

Responsive

Prefix .border-dotted utility with a breakpoint variant (e.g., md:) to apply styles at specific screen sizes (Supported breakpoints are xm through 2xl).

<element class="md:border-dotted" />

States

States are generated dynamically at runtime and always come last. Append a state like :hover or :focus to the end of the class. This works in conjunction with breakpoints .

Supported pseudo-classes: :hover, :active, :focus, :focus-visible, :focus-within, :target, :checked, :disabled, and :group-hover.

<element class="border-dotted:hover" />

Group Hover Example

The :group-hover state applies styles when a parent element with the .group class is hovered.

<element class="group">
  <element class="border-dotted:group-hover">...</element>
</element>

Pseudo-Elements

The ::before and ::after utility classes are supported too. Granted that you add the mandatory content-before or content-after class in order for them to work.

<element class="content-before border-dotted::before" />

<element class="content-after border-dotted::after" />
.border-dotted Sets border-style: dotted.

border-double

Sets border-style: double.

CSS Rules

.border-double {
  --tw-border-style: double;
  border-style: double;
}

Usage

<element class="border-double" />

Responsive

Prefix .border-double utility with a breakpoint variant (e.g., md:) to apply styles at specific screen sizes (Supported breakpoints are xm through 2xl).

<element class="md:border-double" />

States

States are generated dynamically at runtime and always come last. Append a state like :hover or :focus to the end of the class. This works in conjunction with breakpoints .

Supported pseudo-classes: :hover, :active, :focus, :focus-visible, :focus-within, :target, :checked, :disabled, and :group-hover.

<element class="border-double:hover" />

Group Hover Example

The :group-hover state applies styles when a parent element with the .group class is hovered.

<element class="group">
  <element class="border-double:group-hover">...</element>
</element>

Pseudo-Elements

The ::before and ::after utility classes are supported too. Granted that you add the mandatory content-before or content-after class in order for them to work.

<element class="content-before border-double::before" />

<element class="content-after border-double::after" />
.border-double Sets border-style: double.

border-hidden

Sets the border style to hidden.

CSS Rules

.border-hidden {
  --tw-border-style: hidden;
  border-style: hidden;
}

Usage

<element class="border-hidden" />

Responsive

Prefix .border-hidden utility with a breakpoint variant (e.g., md:) to apply styles at specific screen sizes (Supported breakpoints are xm through 2xl).

<element class="md:border-hidden" />

States

States are generated dynamically at runtime and always come last. Append a state like :hover or :focus to the end of the class. This works in conjunction with breakpoints .

Supported pseudo-classes: :hover, :active, :focus, :focus-visible, :focus-within, :target, :checked, :disabled, and :group-hover.

<element class="border-hidden:hover" />

Group Hover Example

The :group-hover state applies styles when a parent element with the .group class is hovered.

<element class="group">
  <element class="border-hidden:group-hover">...</element>
</element>

Pseudo-Elements

The ::before and ::after utility classes are supported too. Granted that you add the mandatory content-before or content-after class in order for them to work.

<element class="content-before border-hidden::before" />

<element class="content-after border-hidden::after" />
.border-hidden Sets the border style to hidden.

border-none

Sets border-style: none. Removes the border.

CSS Rules

.border-none {
  --tw-border-style: none;
  border-style: none;
}

Usage

<element class="border-none" />

Responsive

Prefix .border-none utility with a breakpoint variant (e.g., md:) to apply styles at specific screen sizes (Supported breakpoints are xm through 2xl).

<element class="md:border-none" />

States

States are generated dynamically at runtime and always come last. Append a state like :hover or :focus to the end of the class. This works in conjunction with breakpoints .

Supported pseudo-classes: :hover, :active, :focus, :focus-visible, :focus-within, :target, :checked, :disabled, and :group-hover.

<element class="border-none:hover" />

Group Hover Example

The :group-hover state applies styles when a parent element with the .group class is hovered.

<element class="group">
  <element class="border-none:group-hover">...</element>
</element>

Pseudo-Elements

The ::before and ::after utility classes are supported too. Granted that you add the mandatory content-before or content-after class in order for them to work.

<element class="content-before border-none::before" />

<element class="content-after border-none::after" />
.border-none Sets border-style: none. Removes the border.