Decrease Twitter Bootstrap input field's height?

后端 未结 4 1947
长发绾君心
长发绾君心 2021-02-02 07:13

In my form I would like to decrease my Input field\'s height.

I know there are input-small, input-medium classes which control input field\'s width, but is there any th

4条回答
  •  一生所求
    2021-02-02 07:32

    According to the Bootstrap doc: Bootstrap CSS, you should use .input-sm

    If you're going to write your own CSS, you are not really taking advantage of the power of Bootstrap.

    
    

    It just changes the height property as mentioned by @Neps

    But, I have had to override the .input-sm in my own CSS to get the sizing right.

    I just prefer to use the Bootstrap classes where ever possible.

提交回复
热议问题