Twitter Bootstrap sideways caret

前端 未结 9 669
执念已碎
执念已碎 2021-01-31 03:09

I\'m using Twitter Bootstrap and some custom css (found here) to have dropdown menus open up on mouseover.

I am using the \"caret\" on a on the root menu items to show

9条回答
  •  误落风尘
    2021-01-31 03:42

    Just switch up the borders (see fiddle):

    HTML

    
    

    CSS

    .caret-right {
        border-bottom: 4px solid transparent;
        border-top: 4px solid transparent;
        border-left: 4px solid;
        display: inline-block;
        height: 0;
        opacity: 0.3;
        vertical-align: top;
        width: 0;
    }
    

提交回复
热议问题