Rounded chevron, hey? Something like that?
I achieved this using a pseudo-element and a radial gradient.
.rounded { height: 200px; width: 200px; position: relative; margin: 100px; background: tomato; } .rounded:before { content: ""; position: absolute; top: -20%; height: 20%; width: 100%; left: 0; background: radial-gradient(ellipse at top center, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 70%, tomato 71%, tomato 100%); }
<div class="rounded"></div>
An alternative would be to use the value of the high shadow values ββfor the boxes, using the shadow color of the pseudo-element as the color of the main element:
div{ height:200px; width:200px; position:relative; overflow:hidden; } div:before{ content:""; position:absolute; top:-25%;left:0; height:50%; width:100%; border-radius:50%; box-shadow:0 0 0 999px tomato; }
<div></div>
both of which support gradients and / or images in html and body tags.
source share