Bootstrap: wider input field

后端 未结 7 2228
深忆病人
深忆病人 2020-12-23 19:07

How can I make the input field wider than the default in Twitter\'s Bootstrap?

I am trying to create a wider search form in the hero-unit class from th

7条回答
  •  半阙折子戏
    2020-12-23 19:38

    Use the bootstrap built in classes input-large, input-medium, ... :

    Or use your own css:

    1. Give the element a unique classname class="search-query input-mysize"
    2. Add this in your css file (not the bootstrap.less or css files):
      .input-mysize { width: 150px }

提交回复
热议问题