How can I create Octagonal mask in CSS
问题 I am trying to create a design in which images are octagonal in shape. I used the border hack, but the image needs to be inside the octagon shape. Using pesudo-elements is not apt in this case as the body will also have its own background image. Is it possible with css? My Code div { width: 100vh; height: 100vh; background: gold; position: relative; } div:before { content: ""; position: absolute; top: 0; left: 0; border-bottom: 29vh solid gold; border-left: 29vh solid white; border-right: