Updating x font indir

Determining a unit of measurement to size our text can be a topic of heated debate, even in this day and age.

updating x font indir-32

In the early days of the web, we used pixels to size our text. Unfortunately, users of Internet Explorer—even in IE9—do not have the ability to change the size of the text using the browser function of increasing or decreasing font size.

For those concerned about the usability of their site, this may be a big deal. That whole inability to resize text in IE has been a continuing frustration. Richard Rutter's article, How to size text using ems, was probably the first I read of this approach, way back in 2004.

Recent versions of IE include zooming, which increases the size of on the page—a feature that is also available in most other mainstream browsers, too. I, personally, have been of the camp that px-based layouts provide the consistency I prefer and users have enough tools available to adjust their view that accessibility is less of a concern. (Wow, it has been almost seven years.) The technique modifies the base font-size on the body using a percentage.

This adjusts things so that 1em equals 10px, instead of the default 16px.

To set the font-size to the equivalent of 14px, set it to 1.4em. These issues can be worked around by declaring any child elements to use 1em, avoiding the compounding effect.

Last modified 10-May-2015 20:50