← Tailwind CSS classes list

Tailwind CSS class: .my-auto

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

Preview

Item

Check .my-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

.my-auto { margin-top: auto; margin-bottom: auto; }

More in Tailwind CSS Margins