twitter bootstrap issue : Right align the caret in the dropdown header

前端 未结 3 1636
北恋
北恋 2021-01-01 14:56

I have an issue with the right alignment of the caret. Using .pull-right in the span makes it go to the top right corner.

How can I make it vertically centered agai

3条回答
  •  余生分开走
    2021-01-01 15:08

    A much simpler solution exists for this problem. This style should look the most natural and be the most responsive to all usages as it does not depend on any predetermined layout (other than default bootstrap styles).

    .dropdown > .btn > .caret {
      float: right;
      margin: 6px 0;
      // if you are using Less, the you can reuse the actual vertical padding
      // margin: @padding-base-vertical 0;
    }
    

提交回复
热议问题