How to get a responsive button in bootstrap 3

后端 未结 5 788
逝去的感伤
逝去的感伤 2020-12-13 02:05

I am using bootstrap 3 and I have the following html:


      
5条回答
  •  天涯浪人
    2020-12-13 02:40

    In Bootstrap, the .btn class has a white-space: nowrap; property, making it so that the button text won't wrap. So, after setting that to normal, and giving the button a width, the text should wrap to the next line if the text would exceed the set width.

    #new-board-btn {
        white-space: normal;
    }
    

    http://jsfiddle.net/ADewB/

提交回复
热议问题