Using SASS I'm trying to have an image with a diagonal overlap in the bottom right but before getting far I realised the :before and :after will only work if "content" has text inside it. Where have I gone wrong with this?
<section>
<div class="img">123</div>
</section>
.img {
width: 70vw;
height: 70vw;
margin: 0 auto;
margin-top: 2vh;
background-image: url(../img/img.jpg);
background-position: 50% 0;
background-repeat: no-repeat;
background-size: auto 100%;
border-radius: 25px;
&:before {
width: inherit;
height: inherit;
content: "";
background-color: #0A70D1;
}