Input groups bigger than input in Bootstrap 3 using Jumbotron container

前端 未结 8 1818
后悔当初
后悔当初 2021-02-06 22:54

I\'m experimenting a strange behavior with Bootstrap 3 input groups. When I add an input-group-addon (text or icon) to a form inside a jumbotron, the input-group height is bigge

相关标签:
8条回答
  • 2021-02-06 23:57

    I had the same issue with bootstrap 4. Then I realized my css had following setup for span tags:

     span {
                width: 100px;
                height: 100px;
                display: inline-block;
                background: #0c5460;
            }
    

    Hence all my spans were big. Once I removed it, all worked fine.

    0 讨论(0)
  • 2021-02-06 23:57

    Instead of making the input bigger, make the span (input-group-addon) smaller. To do that, make its padding lower. So:

    .input-group-addon {
        padding: 0px 6px;
    }
    
    0 讨论(0)
提交回复
热议问题