<figure>
	<img src="https://images.pexels.com/photos/4888690/pexels-photo-4888690.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940" alt="Card title">
	<figcaption>
		50% OFF
	</figcaption>
</figure>
img {max-width: 100%;vertical-align: top}

figure {
	width: 300px;
	margin: 0 auto;
	position: relative;
	overflow: hidden;
}

figcaption {
	position: absolute;
	width: 100px;
	height: 100px;
	line-height: 100px;
	text-align: center;
	border-radius: 100%;
	top: 30px;
	left: 100px;
	background: rgba(0,0,0,.7);
	color: #fff;
	font-weight: 600;
	font-family: sans-serif;
}

figcaption::before {
	position: absolute;
	content: '';
	width: calc(100% + 10px);
	height: calc(100% + 10px);
	border-radius: 100%;
	top: -5px;
	left: -5px;
	box-shadow: 0 0 0 100vh rgba(0,0,0,.7);
}

External CSS

  1. https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&amp;display=swap

External JavaScript

This Pen doesn't use any external JavaScript resources.