Bootstrap's input sizes only expand by width, whereas the buttons expand by both height and font size. (see pic) I'm trying to customize the inputs to expand by height and font size as well. (Note: they're fixing this for the next version, but I'm too impatient to wait)
So far I can only achieve this by using the !important
hack to override the input css. I want to avoid using !important
at all costs, because it is awful practice.
Currently, this is the code I have for expanding the height of .input-large
. It does not work when I remove !important
. I assume this is because inputs are given higher priority than classes (which I find absolutely silly, but correct me if I'm wrong).
.input-large {
width: 210px;
height: 44px !important;
margin-bottom: 10px !important;
line-height: 30px !important;
padding: 11px 19px !important;
font-size: 17.5px !important;
}
Is there any way I can achieve this without removing the default input styling and not declaring !important
?
Here's a fiddle: http://jsfiddle.net/xryQK/