<div class="bg">
<img class="img-ellipse02" src="https://www.eyesofc.co.jp/webeyes/_demo/torarin/202104/sample.jpg" alt="サンプル画像">
</div>
.bg {
width: 320px;
max-height: 214px;
background-color: #003366;
}
img {
max-width: 320px;
width: 100%;
}
.img-ellipse02 {
clip-path: ellipse(50% 50%);
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.