← Tailwind CSS classes list

Tailwind CSS class: .-top-px

    <div class="relative mx-auto bg-gray-200 h-20 w-20">
        <div class="absolute -top-px left-0 p-4 bg-teal-400 text-sm"></div>
    </div>

Preview

Check .-top-px 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 in Tailwind CSS Positioning