← Tailwind CSS classes list

Tailwind CSS class: .-translate-y-5

<div class="bg-gray-300 h-64 w-8 m-2 mt-8 inline-flex"><div class="-translate-y-5 transform bg-teal-400 h-6 w-8 mt-auto text-center">-5</div></div>

Preview

-5

CSS source

.-translate-y-5 { --transform-translate-y: -1.25rem; }

More in Tailwind CSS Transform