Respecting Your Users' Fonts

2 · Kevin Cox · June 23, 2021, 1:06 p.m.
I recently changed the style of this blog. It was a trivial change, but the rationale is interesting. I removed the following CSS.body { font-size: 1.3em; } All the text on this blog is sized relatively based on the browsers’ default size. This is very easy to do by using the em or % CSS units. Both of which are relative to the size of the text in the parent element. For example, a heading can be 1.2em or 120% to be a bit larger than the text in the parent element. Alternatively you can also us...