Actual CSS

Overflow

Explicit overflow handling for content that may exceed its container.

Class reference

Base utilities:

ClassDescription
.overflow-autoEnables scrolling when content exceeds the container.

Extra utilities:

ClassDescription
.overflow-hiddenClips overflowing content.
.overflow-clipClips overflowing content without a scroll container.
.overflow-x-autoHorizontal scrolling only.
.overflow-y-autoVertical scrolling only.

Use .overflow-auto when content may overflow its container, especially tables and code-like regions.

Team members
Name Role
Alice Johnson Admin
<div class="overflow-auto">
  <table class="table">
    <caption>Team members</caption>
    <thead>
      <tr>
        <th>Name</th>
        <th>Role</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td>Alice Johnson</td>
        <td>Admin</td>
      </tr>
    </tbody>
  </table>
</div>
.overflow-auto {
  overflow: auto;
}

The extra utilities extend the same concern with axis-specific and clipping variants. To give the native scrollbar the theme's density and colour, pair .overflow-auto with .scroller on the Sizing And Wrapping page.

Actual CSS

Search documentation