.responsive {
width: 100%;
height: auto;
}
.responsive {
max-width: 100%;
height: auto;
}
.responsive {
width: 100%;
max-width: 400px;
height: auto;
}
Responsive Images
If you want to restrict a responsive image to a maximum size, use the max-width property, with a pixel value of your choice.
Resize the browser window to see the effect.
Comments
Post a Comment