Just set the border radius in the CSS rule for the :before or :after element.
Jsfiddle
#container { background: red; width: 100px; height: 100px; position: relative; float: left; } #container:before { content: ''; background: url('http://cdn.sstatic.net/stackoverflow/img/sprites.svg?v=1bc6a0c03b68') blue; background-size: 1000px auto; width: 100px; height: 100px; border-radius: 50px; position: absolute; }
source share