← Tailwind CSS classes list

Tailwind CSS class: .-translate-x-3

<div class="bg-gray-300 w-64 h-6 m-2 ml-10"><div class="-translate-x-3 transform bg-teal-400 h-6 w-8 ml-auto text-center">-3</div></div>

Preview

-3

Check .-translate-x-3 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.

CSS source

.-translate-x-3 { --transform-translate-x: -0.75rem; }

More in Tailwind CSS Transform