-
Notifications
You must be signed in to change notification settings - Fork 677
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Aligning with auto margins #390
Comments
did you know that
|
@blairanderson, right, but this couples the auto margins under the same class, so unfortunately it cannot be used for alignment of item groups within a flexbox container. |
This seems useful - I'll add it to the next release. |
And what about vertical margins ? Vertical centering with Flexbox is useful too ! Adding these would be coherent : .mt-auto { margin-top: auto; }
.mb-auto { margin-bottom: auto; } or .center-v {
margin-top: auto;
margin-bottom: auto;
} |
Sorry for reviving this, but what about @FrankySnow suggestion ? |
I had to come to this issue to find out that |
Let me preface this issue card with a comment of recognition that the maintainers here are "hoping to have flex docs finished soon", and that they don't even know how they "feel about flex box being in core", and that v5 is perhaps underway.
Because of the remarks mentioned above, the topic of this issue is likely already known and is going to be addressed (I'm guessing in a non-core flexbox module). I just wanted to make sure it was explicitly posted somewhere.
I would like to request CSS class definitions for aligning flexbox items with margins. Something like
This is no hack, and is in the overview of the spec as the method used to 'separate flex items into distinct "groups".' It even has its own chapter, “Aligning with auto margins”.
Of course, there are many other things that have been requested for flexbox on this repo, and I don't mean to simply add the noise. If you choose to not support Flexbox, that would be fine. As Feross said, this project should be what you want it to be. I just thought I'd make sure it was noted as a fan desire, since it's a less known feature of aligning items with Flexbox.
The text was updated successfully, but these errors were encountered: