-
-
Notifications
You must be signed in to change notification settings - Fork 78.5k
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
Horizontal form is unable to align long label vertically with input #12939
Comments
Made the example into a JS Fiddle: http://jsfiddle.net/fdX46/1/ |
Hi cvrebert, thanks for your comment. Yes, "the text of both the input and the first line" is exactly what I mean. My expected result is that the vertical center of the input and the vertical center of the 2-lines label should have the same baseline. Because when you have f.ex. 5 inputs and one of them has two lines then it does not look well aligned. I've been using this workaround in Bootstrap 2: .form-horizontal .control-label {
display: inline-block;
vertical-align: middle;
float: none;
}
.form-horizontal .controls {
display: inline-block;
margin-left: 20px;
} But I am not able to solve it twbs3. |
We won't be changing this for the time being. Your CSS changes the layout of the forms as they all need to be floated for proper alignment. We'll do our best come v4 to improve form layout again <3. |
thanks |
I have got a long label next to my input and according to my review there is no way how to align them vertically (without setting a margin property on the long input what cannot be done automatically) in horizontal form. It is OK with a short label.
The text was updated successfully, but these errors were encountered: