Decrease Twitter Bootstrap input field's height?

后端 未结 4 1961
长发绾君心
长发绾君心 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:26

    I couldn't find any and if there isn't how do I go about overriding the defaults?

    Bootstrap's input field height is defined using attribute selectors e.g. input[type="text"], input[type="password"]

    You can override it with your styles in the same selector format, or uses classes and such.

    .mystyle input[type="text"] {
       height: 14px;
       font-size: 10px;
       line-height: 14px;
    }
    

提交回复
热议问题