I want to get this CSS shape and have a background puicture inside it

You can achieve similar shapes to this using the border-radius property. You can play around with the values until you get the perfect shape you want.

HTML:

<div class="shape">
  <img src="https://cdn.stocksnap.io/img-thumbs/960w/2RTQTEA00I.jpg">
</div>

CSS:

.shape{
  width:500px;
  height:400px;
  margin:50px auto;
  overflow:hidden;
  border-radius:0 0 10% 50%;
}
.shape img{
  max-height:100%;
}

Here’s a fiddle: https://jsfiddle.net/p80b7fp6/

Leave a Comment