-
-
Notifications
You must be signed in to change notification settings - Fork 79k
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
v4 - Need example of vertical alignment. May be need component. #17122
Comments
@nodkz using flexbox would probably be your best option for that. Otherwise any implementation gets messy as you'd need either the height of the div or if it's unknown you get into some messy Y translation / absolute positioning. Flexbox example (not BS specific): .parent {
display: flex;
flex-direction: column;
justify-content: center;
} |
If you use the new flexbox grid, we have classes for vertical alignment now: Lines 71 to 123 in b591d23
|
Curious, why not set it up like so?
Will save on lines, and easier to maintain* (I assume). If this is good, I can create a pull request. Thanks. |
@mdo wanted to keep the complexity to a minimum, IIRC. Might have changed now though. |
I'm open to a PR on that stuff to reduce the repetition, so long as we feel it's approachable enough for folks. |
Added flexbox utils in #19099. |
Bootstrap v4 add great features, which cover all my needs:
Except one:
The text was updated successfully, but these errors were encountered: