-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
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
Within .form-inline, label isn't on the same line as its .input-group #20752
Comments
Not android |
+1 |
Hello mihaistoie. Your only problem is that you are missing an end tag and one end div is in a bad position. Try this:
|
@Rosenny08 , I ran the code you posted on a blank Bootply with Bootstrap 4.0-alpha and it is not working. Is this something that has been corrected since the 4.0-alpha version that is used on Bootply was put in? |
Source of problem: _input-group.scss .input-group {
position: relative;
width: 100%; // --> this line
display: table;
border-collapse: separate;
} Normally the solution is to add : .form-inline .input-group {
width: auto;
} |
@cpeuterbaugh I ran the code in a blank file too and it's working for me. |
@mihaistoie your answer is right. Also you can give that parameter to the form-control. And add more:
|
@Rosenny08 : You are using bootstrap 3.x (bold labels). The issue is for bootstrap 4 alpha-4 not for 3.x. |
Ahhhhh. Oh God. My excuses then. |
@mihaistoie Thank you so much! And @Rosenny08, thanks for the help as well. |
In
Then in _forms.scss we have lines 322ff (within the rules for
So as @mihaistoie said, the problem could be fixed by adding In Bootstrap 3 this apparently wasn´t needed because |
Overrides the default width: 100% with an auto. Fixes #20752.
Inline forms: Labels of input groups are placed above input fields
Html:
https://jsbin.com/jimoli/edit?html,output
OS: win7 64, browsers Firfox/IE/Chrome
The text was updated successfully, but these errors were encountered: