I'm trying to round the corners of a div, but in Firefox there seems to be an issue with whitespace between the border and background color.
Check out my demo fiddle.
<div> </div>
div {
margin: 20px;
width: 250px;
height: 250px;
-moz-border-radius: 15px;
-webkit-border-radius: 15px;
-khtml-border-radius: 15px;
border-radius: 15px;
background-color: #4c66a1;
border: 2px solid #4c66a1;
}
The issue only occurs in Firefox, while IE, Chrome, and Opera display the rounded corners correctly. The slight whitespace gap looks like a lighting effect on the corner edges.
Is this a known bug in Firefox when applying rounded corners? Any workarounds?
Note: For demonstration purposes, I've intentionally made the border and background color the same to highlight the issue more clearly.
Firefox Chrome/IE/Opera