The effect I am trying to get is that I have a shape infront of another shape and where that shape is the background is visible. Ideally just the outline but cutting the whole shape out will be ok as I could then draw another shape inside.
Here is a snippet to show what I mean
.box{
width: 500px;
height: 500px;
background-color: red;
position: relative;
}
.inner-box{
width: 100px;
height: 100px;
border: 15px solid #000;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
position: absolute;
}
body{
background-image: url("https://unsplash.com/photos/6-jTZysYY_U/download");
}
<div class="box"><div class="inner-box"></div></div>
Instead of the black outline I want to be able to see the background where the outline is, or have the whole square cut out.