...

/

Layout Features

Layout Features

Learn how Tailwind can manage the layout of multiple elements through containers, floats, and clears.

With Tailwind, we can lay out the elements on an entire page and manage common features like navigation, sidebars, and footers. We can also use Tailwind to put complex groupings of elements within a page, such as cards or hero blocks.

Let’s start with some general utilities Tailwind provides to help place elements on a page—the box-to-box relationships.

Containers

Many CSS frameworks use a container class as the general top-level container to specify the page width. While Tailwind does offer a .container utility, Tailwind’s version does much less than similar classes do in other frameworks. The ...