image fit to div size code example
Example 1: resize img to fit
img {
max-width:100%;
height:auto;
}
Example 2: make image stretch to fit div
Just apply without any changing any code
img {
width: 100%;
}
img {
max-width:100%;
height:auto;
}
Just apply without any changing any code
img {
width: 100%;
}