Tailwind CSS Classes

Tailwind CSS class .sm:

<div class="bg-teal-400 sm:bg-red-400 md:bg-green-400 lg:bg-yellow-400 xl:bg-indigo-400 py-2 px-4 text-center">Resize window</div>

Preview

CSS source

@media (min-width: 640px) {
    // styles
}

Check .sm: 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.