I am trying to create an image inside a rounded hexagon where this image will act as the title of a longer hexagon to display profile / biography information. The hexagon would also have a border.
I researched, and so far I could find a practical guide on how to put an image in a hexagon and how to make a rounded hexagon hexagon, how it is available here (this is the shape I want, except it rotates) http://codepen.io/thebabydino / details / gFxzt It seems that I can not combine the two concepts together, perhaps because they are different.
Can someone help me.
This is what I have come up with so far that I do not want.
-webkit-clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
Here is my jsfiddle .
Bonus points for responsiveness.
source
share