3 ms·
You can still make responsive images without using them as a background. Just set the CSS width property to 100% of its parent and the height property to auto.
by alpha_squared 9y ago
You can still make responsive images without using them as a background. Just set the CSS width property to 100% of its parent and the height property to auto. The problem is you can certainly over-scale if the parent container's width is larger than the image's.
- makeee 9y agoAgreed. Was responding to the top comment in this thread about why one might want to use an image tag instead of background-image.