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?
<nav>
<a>
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
2.1m questions
2.1m answers
60 comments
57.0k users