Tailwind CSS Classes

Tailwind CSS class .inset-x-1

    <div class="relative h-32 w-32 bg-gray-400 m-2">
        <div class="absolute inset-x-1 h-10 bg-teal-400"></div>
    </div>

Preview

Are you tired of writing HTML by hand?

Check .inset-x-1 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 Positioning category

© 2025 Shuffle. All rights reserved.