px vs em revisited

Out of context: Reply #9

  • Started
  • Last post
  • 22 Responses
  • nocomply0

    I'm glad to hear I'm not the only one who has lost hours contemplating this issue!

    About 6 months ago I thought it was time to revisit the issue, and I made a little cheat-sheet / explanation web page about it. This would make a great blog post, but I never have time to blog, so I posted it here. It might make more sense to me than to others, but feel free to ask any questions and I'll try to answer them.

    http://evanwebdesign.com/font-si…

    My method still uses ems, but like you said that's really only for IE 6 and IE 7. I made the conscious decision to stop supporting IE 6 for 2011, and there really aren't too many people browsing in IE 7 anymore either.

    I think that for 2012 I'm going to switch back to px. I like the fact that px do not have the inheritance issues that ems do. For me, that makes them easier to work with.

    Here's 1 question though that I don't know the answer to... How do px play out on mobile devices like iphone/ipad and android or blackberry phones? I never did any research or testing on that, but I'm guessing that they can handle px no problem. Am I correct?

    • look up -webkit-text-size-ad... propertyraf
    • -webkit-text-size-ad...raf
    • qoob keeps cutting off 'adjust'raf

View thread