When a border radius is applied to a color div with a white border, the background color appears outside the white border at the corners. Why is this happening? (Tried ie9 and ie10).
<div class="rounded"></div>
.rounded {
display: inline-block;
-webkit-border-radius: 50%;
-moz-border-radius: 50%;
-ms-border-radius: 50%;
border-radius: 50%;
border: 3px solid #fff;
background: #f00;
width: 100px;
height: 100px;
}
body {
background-color: #fff;
}
The fact is that I really need a white frame, so removing it or its transparency, as some have suggested, is not an option. Here is the fiddle: http://jsfiddle.net/z0rt63e2/1/
source
share