πͺOverflow
Overflow Utility Classes
.overflow-hiddenDescription: Applies the
overflow: hiddenproperty to hide overflowing content within an element.CSS equivalent:
overflow: hidden;Example usage:
<div class="overflow-hidden"> <!-- Content with hidden overflow --> </div>
.scroll-yDescription: Applies the
overflow-y: scrollproperty to enable vertical scrolling when the content exceeds the height of the element.CSS equivalent:
overflow-y: scroll;Example usage:
<div class="scroll-y"> <!-- Content with vertical scrolling --> </div>
.scroll-xDescription: Applies the
overflow-x: scrollproperty to enable horizontal scrolling when the content exceeds the width of the element.CSS equivalent:
overflow-x: scroll;Example usage:
<div class="scroll-x"> <!-- Content with horizontal scrolling --> </div>
.overflow-x-clipDescription: Applies the
overflow-x: clipproperty to clip overflowing content horizontally.CSS equivalent:
overflow-x: clip;Example usage:
<div class="overflow-x-clip"> <!-- Content with clipped horizontal overflow --> </div>
.overflow-y-clipDescription: Applies the
overflow-y: clipproperty to clip overflowing content vertically.CSS equivalent:
overflow-y: clip;Example usage:
<div class="overflow-y-clip"> <!-- Content with clipped vertical overflow --> </div>
.overflow-clipDescription: Applies the
overflow: clipproperty to clip overflowing content both horizontally and vertically.CSS equivalent:
overflow: clip;Example usage:
<div class="overflow-clip"> <!-- Content with clipped overflow in both directions --> </div>
.overflow-visibleDescription: Applies the
overflow: visibleproperty to allow overflowing content to be visible outside the element.CSS equivalent:
overflow: visible;Example usage:
<div class="overflow-visible"> <!-- Content with visible overflow --> </div>
.overflow-autoDescription: Applies the
overflow: autoproperty to enable automatic scrolling when the content exceeds the size of the element.CSS equivalent:
overflow: auto;Example usage:
<div class="overflow-auto"> <!-- Content with automatic scrolling when necessary --> </div>
.overflow-x-visibleDescription: Applies the
overflow-x: visibleproperty to allow horizontal overflowing content to be visible.CSS equivalent:
overflow-x: visible;Example usage:
<div class="overflow-x-visible"> <!-- Content with visible horizontal overflow --> </div>
.overflow-x-autoDescription: Applies the
overflow-x: autoproperty to enable automatic horizontal scrolling when the content exceeds the width of the element.CSS equivalent:
overflow-x: auto;Example usage:
<div class="overflow-x-auto"> <!-- Content with automatic horizontal scrolling when necessary --> </div>
.overflow-y-visibleDescription: Applies the
overflow-y: visibleproperty to allow vertical overflowing content to be visible.CSS equivalent:
overflow-y: visible;Example usage:
<div class="overflow-y-visible"> <!-- Content with visible vertical overflow --> </div>
.overflow-y-autoDescription: Applies the
overflow-y: autoproperty to enable automatic vertical scrolling when the content exceeds the height of the element.CSS equivalent:
overflow-y: auto;Example usage:
<div class="overflow-y-auto"> <!-- Content with automatic vertical scrolling when necessary --> </div>
Overflow Wrap Utility Classes
.overflow-wrap-normalDescription: Applies the
overflow-wrap: normalproperty to prevent line breaks within words when the content exceeds the width of the element.CSS equivalent:
overflow-wrap: normal;Example usage:
<div class="overflow-wrap-normal"> <!-- Content with normal line wrapping --> </div>
.overflow-wrap-breakDescription: Applies the
overflow-wrap: break-wordproperty to allow line breaks within words when the content exceeds the width of the element.CSS equivalent:
overflow-wrap: break-word;Example usage:
<div class="overflow-wrap-break"> <!-- Content with word breaking within lines --> </div>
These utility classes provide control over the overflow behavior and line wrapping within elements, allowing you to manage the display and scrolling of overflowing content.
Last updated