← Tailwind CSS classes list

Tailwind CSS class: .-mx-8

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

Preview

Item

Check .-mx-8 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-8 { margin-right: -2rem; margin-left: -2rem; }

More in Tailwind CSS Margins