2 ms·
This is where em rather than px (or rem) units is preferred. body { margin: 2rem auto; padding: 2rem; width: auto; max-width: 45em;
by dredmorbius 7y ago
This is where em rather than px (or rem) units is preferred.
body {
margin: 2rem auto;
padding: 2rem;
width: auto;
max-width: 45em;
}
Works in most instances, even without @media queries.
https://codepen.io/dredmorbius/full/KpMqqB https://codepen.io/dredmorbius/full/KpMqqB