This can be done by adding four circular “gradient” background images on top of the regular background image, each of which is located in the corresponding corner. Here is an example on the Lea Verou blog . From this I extracted a JSFiddle ; key code -
.round {
background:
radial-gradient(circle at 0 100%, rgba(204,0,0,0) 14px, #c00 15px),
radial-gradient(circle at 100% 100%, rgba(204,0,0,0) 14px, #c00 15px),
radial-gradient(circle at 100% 0, rgba(204,0,0,0) 14px, #c00 15px),
radial-gradient(circle at 0 0, rgba(204,0,0,0) 14px, #c00 15px);
background-position: bottom left, bottom right, top right, top left;
background-size: 50% 50%;
background-repeat: no-repeat;
padding: 14px;
}
source
share