css image scale to fit code example
Example 1: resize img to fit
img {
max-width:100%;
height:auto;
}
Example 2: how to contain image size
overflow: 'hidden',
backgroundSize : 'contain',
img {
max-width:100%;
height:auto;
}
overflow: 'hidden',
backgroundSize : 'contain',