%, fr) instead of fixed pixelsmax-width: 100%, <picture> with different src for different sizes/* Mobile first */
.container { padding: 16px; }
@media (min-width: 768px) {
.container { padding: 24px; }
}
@media (min-width: 1280px) {
.container { max-width: 1280px; margin: 0 auto; }
}Mobile First — base styles for mobile, expanded for larger screens (min-width). The recommended approach: forces you to think about the most important content first.