-
-
Notifications
You must be signed in to change notification settings - Fork 79.1k
.form-control-static isn't the same height as .form-control #20733
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
Comments
Hi, @tompazourek I tried replicating the condition you mentioned to the best of my understanding and could find a problem as to the alignment in case of a multi-column form. You can see example for further info: http://codepen.io/knk-here/pen/BLLBRE At first I thought using the That definitely worsens the issue. 26px vs 40px, across all the above mentioned browsers. |
Hi @knkhere! You appear to have posted a live example (http://codepen.io/knk-here/pen/BLLBRE.html), which is always a good first step. However, according to the HTML5 validator, your example has some validation errors, which might potentially be causing your issue:
You'll need to fix these errors and post a revised example before we can proceed further. (Please note that this is a fully automated comment.) |
@knkhere: I always use the What I had in mind was something like this: http://codepen.io/tompazourek/pen/XjjpqP (you can see that due to different heights the alignments are wrong). Of course to maintain alignment, I could just make a new Also note that the difference isn't 26px vs 40px, but rather 38px vs 40px. The issue in your case was that you were using the |
Its because the min-height and line-height. Set min-height:auto;line-height:normal; |
In Bootstrap 4 Alpha 4 the
form-control-static
isn't the same size asform-control
.See example:
http://v4-alpha.getbootstrap.com/components/forms/#static-controls
form-control-static
element's height is 24 pixels plus 8 pixels vertical padding making 40 pixels of height.form-control
element's height is 20 pixels plus 8 pixels vertical padding plus 1 pixel border making 38 pixels of height.The issue is that if I use
form-control-static
andform-control
side by side (like in multi-column form layout), the result will not be aligned nicely.In v3, the
form-control-static
andform-control
were both the same height.I'm using Chrome 53 right now.
The text was updated successfully, but these errors were encountered: