css image resize to fit 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%;
}