25 CSS Hacks Every Developer Should Know

Responsive images

Problem: ensuring images are responsive.

Solution: use `max-width`.

img {
  max-width: 100%;
  height: auto;
}