Bootstrap / CSS - Input, button and select in the same line

前端 未结 2 1717
半阙折子戏
半阙折子戏 2021-01-26 02:11

I\'m trying to put an input, a button and a select in the same line using bootstrap/css, but the select, depending on its content size, is going to the next lin

2条回答
  •  后悔当初
    2021-01-26 02:58

    Problem with form-inline is that it's applying width:auto; on the select and as in your scenario content is large and enough space is not available in the first line so it's starting from the new line. Instead of using form-inline you can restructure your markup like that:

            

提交回复
热议问题