Border-radius bleeding

Enrique Moreno Tent picture Enrique Moreno Tent · Apr 13, 2011 · Viewed 9.3k times · Source

I want to give border-radius to a <nav> in which all the <a> have an image has background, but the image keeps going outside the border-radius. Why is that?

Answer

tgandrews picture tgandrews · Aug 13, 2011

To fix this in all browsers you should use:

-moz-background-clip: padding; 
-webkit-background-clip: padding-box;
background-clip: padding-box;

I found the answer here