Maybe something like this?
.Profileimage{ position: relative; background: linear-gradient(rgb(252,238,33), rgb(255,255,255)); -webkit-border-radius:50px; -moz-border-radius:50px; border-radius:50%; width:100px; height:100px; } .Profileimage:after{ position: absolute; display: block; top: 5px; left: 5px; width: 90px; height: 90px; content: ""; background-color: #fff; background-image: url("images/profilePic.jpg"); background-repeat: no-repeat; background-size: cover; border-radius: 50%; overflow: hidden; }
Not sure if this is what you are looking for, but you can just set the background to the gradient and then put the element on top (here I use the βafterβ pseudo-selector)
Fiddle: http://jsfiddle.net/6ue88pu6/1/
source share