Tailwind CSS Classes

Tailwind CSS class .container

<div class="container mx-auto bg-teal-400 h-16"></div>

Preview

CSS source

.container {
    width: 100%;
}

@media (min-width: 640px) {
    .container {
        max-width: 640px
    }
}
@media (min-width: 768px) {
    .container {
        max-width: 768px
    }
}
@media (min-width: 1024px) {
    .container {
        max-width:1024px
    }
}
@media (min-width: 1280px) {
    .container {
        max-width:1280px
    }
}

Check .container in a real project

Click one of the examples listed below to open the Shuffle Visual Editor with the UI library that uses the selected component.

More Tailwind CSS classes in Responsive category

© 2024 Shuffle. All rights reserved.