avatar
apply border radius to the container CSS

• Be assumption that you want to apply a border radius to the container so that the corners of the image are rounded as well.

<html>

<div class="image-container">
  <img src="<URL>" alt="<Your URL IMAGE>">
</div>

<css>

.image-container {
  border-radius: 20px;
  overflow: hidden;
}

img {
  width: 100%;
  height: auto;
  display: block;
}
24
You need to login to do this manipulation!