I'm trying to create this:
Image with slanted square overlay
I can't manage to get a slight slant. I'm able to achieve a triangle with changing the borders, but It's slanted too much.
Here is my code for the image with a square and the text:
.realtor-img-background {
height: 400px;
width: 450px;
background: url("./images/real-estate.jpg");
}
.square{
position: absolute;
bottom:0;
height: 200px;
width: 450px;
background-color: red;
}
<div class="realtor-img-background">
<div class="square">
<h3 class="eva-text-white">
Realtors
</h3>
<p class="eva-text-white">
Lorem Ipsum has been the industry's standard dummy text ever since the 1500s.
</p>
</div>
</div>