how do I easily increase the font size of all form elements in twitter's bootstrap css system?

Andrew Arrow picture Andrew Arrow · Apr 2, 2012 · Viewed 28.2k times · Source

http://twitter.github.com/bootstrap/base-css.html#forms

I have a simple Horizontal form like their example with labels and input text fields. How do I make all the labels font-size: 24px and all the inputs the right height, etc. I also need the harded coded margin of 140px width to increase so the labels don't wrap. That is, I'm looking for the best practice way to say: bigger!

Answer

Jordan picture Jordan · Apr 2, 2012

Why not just set form label to 24px and form input height to whatever matches?

form label {
    font-size: 24px;
}

form input, form textarea, form select {
    margin-left: 200px;
}

Just put this code somewhere after the bootstrap.css loads, and it'll override their defaults. You may also want to add selectors for the input type so that it doesn't do buttons.