Power To The People: Relative Font Sizes

by Bojan Mihelac

72 Reader Comments

Back to the Article
  1. I’m a bit confused, and after a testing, even more confused. Why has the author chosen to declare font-size in this manner:

    /* xx-small.css*/
    body,
    body div,
    body p,
    body th,
    body td,
    body li,
    body dd {
      font-size: xx-small;
      voice-family: “\”}\”“;
      voice-family: inherit;
      font-size: x-small
    }

    Wouldn’t the following be enough?

    body { font-size: xx-small }

    With the latter, everything in the body now is xx-small, no? From my testing, the author’s code actually causes some inherietance problems. Is there a point that I’m missing in writting it out the way the author has here?

    Copy & paste the code below to embed this comment.
  2. Hi Fernando, look this article for more information about relative font sizing:

    http://www.alistapart.com/articles/sizematters/

    Copy & paste the code below to embed this comment.