← Tailwind CSS classes list

Tailwind CSS class: .m-auto

<span class="m-auto inline-block bg-teal-400">Item</span>

Preview

Item

Check .m-auto 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

.m-auto { margin: auto; }

More in Tailwind CSS Margins