This portion of code draws round borders on a menu.
That works well in Chrome, IE11 and even IE10, but in IE9
there is a problem: the round borders are "dirty"...
.navsub {
display: block;
z-index: 999;
}
.navsub li {
/*float: left;*/
margin: 0px 2px;
padding: 3px 5px;
display: inline-block;
border: 2px solid #fff;
border-radius: 5px;
z-index: 100;
position: relative;
}
.navsub li:hover a, .navsub li.selected a {
color: #fff;
}
.navsub li:hover, .navsub li.selected {
background: rgb(204, 0, 0);
background: -moz-linear-gradient(top, rgb(204, 0, 0) 0%, rgb(170, 0, 0) 43%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, rgb(204, 0, 0)), color-stop(43%, rgb(170, 0, 0)));
background: -webkit-linear-gradient(top, rgb(204, 0, 0) 0%, rgb(170, 0, 0) 43%);
background: -o-linear-gradient(top, rgb(204, 0, 0) 0%, rgb(170, 0, 0) 43%);
background: -ms-linear-gradient(top, rgb(204, 0, 0) 0%, rgb(170, 0, 0) 43%);
background: linear-gradient(to bottom, rgb(204, 0, 0) 0%, rgb(170, 0, 0) 43%);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#cc0000', endColorstr='#aa0000', GradientType=0);
color: white;
}
.navsub li:hover::before, .navsub li.selected::before {
border: solid;
border-color: #A00000;
border-width: 8px 10px 5px 4px;
bottom: -3px;
content:"";
left: 10px;
position: absolute;
z-index: -1;
-webkit-box-shadow: 3px 3px 5px -1px rgba(0, 0, 0, .3);
box-shadow: 3px 3px 5px -1px rgba(0, 0, 0, .3);
transform: rotate(45deg);
-ms-transform: rotate(45deg);
-webkit-transform: rotate(45deg);
}
<ul class="navsub">
<li class="nav1"><a href="#">Una volta</a></li>
<li class="nav1 selected"><a href="#">Un tango</a></li>
<li class="nav1"> <a href="#">Una ragazza</a></li>
</ul>
How can I remove the "dirty" borders that draws Internet Explorer 9?
use this handy tool for generating the css for gradients http://www.colorzilla.com/gradient-editor/
Support for full multi-stop gradients with IE9 (using SVG).