<div class="main">
    <img class="works" src="https://search.pstatic.net/common?quality=75&direct=true&src=https%3A%2F%2Fmovie-phinf.pstatic.net%2F20211108_295%2F1636363035383sHbbs_JPEG%2Fmovie_image.jpg" alt="영화 강릉 포스터">
</div>
.main {
  width: 150px;
  height: 213px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #d2d2d2;
}

.works {
  width: 150px;
  height: 150px;
  object-fit: fill;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.