Looking to add a triangle with text over an image using CSS? Here's a sample image for reference:
Here's what I have so far:
.image {
background: url('../image.jpg');
background-repeat: no-repeat;
background-size: cover;
position: relative;
overflow: hidden;
& .text {
position: absolute;
background-color: #FFF;
bottom: 0;
right: 0;
padding: 10px 20px;
}
}
<div class="image">
<span class="text">
<p>Text here</p>
<p>And here</p>
</span>
</div>
How can the left side of the box be rotated or angled?
Thank you for any assistance!