[Feature Request] Add my-auto and ma-auto
Problem to solve
This feature could help center elements, vertically and horizontally + vertically.
Maybe there is another way to center elements with existing features, but I didn't find them.
Proposed solution
Write these two spacing helpers that could be implemented like this :
.ma-auto {
margin: auto;
}
.my-auto {
margin: auto 0 auto 0;
}
If you think it's a good idea, I could propose a PR. But, like I said, maybe there is another way to do it with existing features.
Vuetify uses Flexbox to align elements. You can wrap your element within a v-layout and apply necessary attributes to align the item as shown below.
<v-layout justify-center align-center>
<!-- Element to be centered -->
<div>Element</div>
</v-layout>
Thanks @nikhilem I discover https://vuetifyjs.com/examples/layouts/centered and understand better how container / layout / flex are orchestrated. It's a bit difficult for me to understand which component is responsible for what, but you help me understand better ! Thank you.
Glad to help