Answers for "fill div with 2 images"

CSS
1

image to fill div

.fill {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden
}
.fill img {
    flex-shrink: 0;
    min-width: 100%;
    min-height: 100%
}
Posted by: Guest on March-21-2021
1

place many images in a div beautifully

div {
  display: flex;  
  flex-wrap: wrap;
}
Posted by: Guest on July-30-2020

Browse Popular Code Answers by Language