I'm trying to create a chevron shape using CSS with a rounded head (top edge, instead of a triangle one), but not able to achieve this. Can anyone help? Demo here.
CSS:
#shape{
width: 100px;
height: 100px;
background-color: lightblue;
-webkit-clip-path: polygon(100% 100%, 0 100%, 0 0, 52% 16%, 100% 0);
clip-path: polygon(100% 100%, 0 100%, 0 0, 52% 16%, 100% 0);
}
A rounded chevron, hey? Something like this?
I've achieved this using a pseudo element and a radial gradient.
An alternative would be to use a high box shadows value instead, using the pseudo element's box shadow color as the main element's color as well:
both of which support gradients and/or images in the html and body tags.