CSS Responsive Image

PHOTO EMBED

Mon Oct 18 2021 22:13:06 GMT+0000 (UTC)

Saved by @Higokian #css #html #responsive-design

.responsive-img {
  max-width: 100%;
  height: auto;

}
content_copyCOPY

max-width: 100% ensures image doesn't get wider than container height: auto ensures aspect ratio remains the same