Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CSS caret not workin in in IE Edge

I have a carret in a drop down menu that works correctly in all browsers except Microsoft Edge. In Microsoft Edge is the caret split in two parts with a black line in the middle. I am attaching screenshot and css declaration.

.caret {
    display: inline-block;
    width: 0px;
    height: 0px;
    margin-left: 2px;
    vertical-align: middle;
    border-top: 4px solid\9;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
}

enter image description here

like image 452
ronline Avatar asked Nov 08 '22 18:11

ronline


1 Answers

This should work across browsers:

HTML:

<span class="caret"></span>

CSS:

.caret {
    width: 0; 
    height: 0; 
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid red;
    border: none\9; 
}
like image 81
Rob Howells Avatar answered Dec 09 '22 02:12

Rob Howells