Answers for "how do i make an image not overflow in a div?"

CSS
1

css image overflow

.image-holder{
  width: 500px;
  height: 500px;
  overflow: hidden;
}
.image-holder img{
  width: 100%;
  height: 100%;
}
Posted by: Guest on June-17-2021

Code answers related to "how do i make an image not overflow in a div?"

Browse Popular Code Answers by Language