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

前端 未结 3 1625
北恋
北恋 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:21

    Just interchange the caret and span blocks in HTML:

    HTML

       
    

    CSS

      .cust-dropdown {
            width: 200px;
        }
    
        #titl {
    
          padding-right: 10px;
        }
    

    You can align the text more to the left by adding more padding-right.

提交回复
热议问题