Monkeyfied Evolved

Consistent text size using CSS

Our task was to find a way to size text that allows designers to retain accurate control of typography, without sacrificing the user’s ability to adjust his or her reading environment.

Richard Rutter, the author who had previously introduced the 62.5% rule for sizing text using ems, has written an aritcle that outlines a best practice for consisitent text sizing that satisfies designers and user’s and works across browsers and platforms.

Richard obviously put a lot of time and effort into this article taking some 161 screenshots for the task, which was "to size text that allows designers to retain accurate control of typography, without sacrificing the user’s ability to adjust his or her reading environment."

Using ems to size the text and line height and a precentage for the body Richard has shown that this technique is a best practice for sizing text using CSS that satisfies both designers and readers.

The final CSS is below but please read the full article for a complete rundown of this technique.

  1. body {
  2. font-size:100%;
  3. line-height:1.125em;
  4. }
  5. .bodytext p {
  6. font-size:0.875em;
  7. }
  8. .sidenote {
  9. font-size:0.75em;
  10. }
  11. <\!--[if !IE]>-->
  12. body {
  13. font-size:16px;
  14. }
  15. <\!--<[endif]-->

Your Comments

No comments have been added yet for this article. We've all got an opinion so feel free to share yours below =)












Your email address will NEVER appear on this site OR elsewhere

Spam, silling flaming or anything out of line will be deleted

A link is provided to your website, but please use your name. Any keyword stuffed names will be deleted

Please be polite, respectful, and on-topic in your comment

Web Design Gallery Navigation

Development Articles and Resources

Get more traffic from social media sites for web designers

We are all after traffic to our sparkling new site or freshly written article that we want the design comunity to read, but it's not easy getting on the front page of Digg's design section.

Monday 10th March 2008
Over 100 resources for Web Developers

Blogwell has put together an impressive list of over 100 resources that are helpful to Web Developers.

Wednesday 5th March 2008
45 Free beautiful blog header designs

Last month Smashing Magazine asked their readers to create create a gallery of blog header graphics which every designer could use for free and without any restrictions whatsoever. This post presents the results of the contest.

Wednesday 5th March 2008
Twelve Things Most Wesbites Need - Part II

As promised here is the follow up to last weeks article "Twelve Things Most Wesbites Need - Part 1"

Wednesday 5th March 2008
10 Visual jQuery Tutorials for Designers

Nick La has posted 10 jQuery Tutorials over at Web Designer Wall.

Sunday 2nd March 2008

Development Resources Navigation