Add auto margin vertically
See original GitHub issueIs a good practice, like bootstrap do, adding a my-auto spacing helpers.
Is usefull have it in the quasar core and not add this usefull spacing, for working with flex, in external app file.
Thanks
Issue Analytics
- State:
- Created 4 years ago
- Comments:13 (9 by maintainers)
Top Results From Across the Web
Using margin:auto to vertically-align a div - Stack Overflow
If the display of your parent container is flex , then yes, margin: auto auto (also known as margin: auto ) will work...
Read more >Vertical center with margin:auto - CodePen
Absolute elements will centre vertically when margin:auto is used and all co-ordinates are set . ...
Read more >15 ways to implement vertical alignment with CSS
15 ways to implement vertical alignment with CSS · 1. Absolute positioning and margin: auto · 2. The classic top:50% , translateY(-50%) ·...
Read more >margin | CSS-Tricks
Vertical margins on different elements that touch each other (thus have no content, padding, or borders separating them) will collapse, forming ...
Read more >Bootstrap 4 Vertical Center Using Auto Margins on Codeply
Vertical & horizontal center using auto-margins.. I am Groot. Various vertical align examples with Bootstrap 4. Preview open_in_new. 1007.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Confusion is over. q-my-auto, q-mt-auto and q-mb-auto are coming to “quasar” v1.9.12. Just make sure that you know what you are doing.
Yes, as I’ve said before:
@rstoenescu asked me before the reason I use flex and not something else, is because the interactive parent component uses flexbox and then dynamically changes the direction between column and row etc.
So, since I’d need flexbox anyway when the parent element is in the the
.rowstate, I see no reason why I should avoid flexbox in the.columnstate…I strongly believe we should in all cases, and to avoid any confusion, provide the users with
q-mt-autoandq-mb-auto.@pdanpdan
I would say it’s the exact opposite. I was extremely confused by their absence! 😅