← Tailwind CSS classes list

Tailwind CSS class: .-mx-2

<span class="-mx-2 inline-block bg-teal-400">Item</span>

Preview

Item

Check .-mx-2 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

.-mx-2 { margin-right: -0.5rem; margin-left: -0.5rem; }

More in Tailwind CSS Margins