Answers for "cover div with img"

1

how to contain image size

overflow: 'hidden',
backgroundSize : 'contain',
Posted by: Guest on May-26-2020
3

make image stretch to fit div

Just apply without any changing any code
img {
width: 100%;
}
Posted by: Guest on October-22-2020

Browse Popular Code Answers by Language