3 ms·
Is it not better to specify max-width in ems? body { max-width: 35em; } That way, if the user makes the text very large, the entire width of the window wi
by hollerith 11y ago
Is it not better to specify max-width in ems?
body { max-width: 35em; }
That way, if the user makes the text very large, the entire width of the window will be used.
- yoz-y 11y agoThis probably depends on the browser but Safari, for example, scales inches (and centimetres) with the zoom level, so the result is probably the same. I don't like em and rem much as they do not really reflect the actual size in tangible units, but that is largely a personal preference.
- hollerith 11y agoWhat if the user changes the font size with CSS?
- yoz-y 11y agoThat is a valid point. Although I think that if you are modifying CSS then you either know exactly what you are doing, or disabling it altogether and replacing it with your own stylesheet. I think that there is quite a lot of stuff that will break if you increase the font size too much. I'll play with it a little bit more, the ems might be a better solution after all.