Skip to content

Glossary: Tailwind CSS

@container

Also written: container query, container queries, @md:

A class that makes an element a size container, so children can change style based on the container's width rather than the screen's, using variants like `@md:`.

Where the book teaches it

Related terms

VariantBreakpoint