Grow your CSS skills. Land your dream job.

font sizing

  • # September 10, 2010 at 11:49 am

    When styling a site and using ems as a unit for measure for your fonts do you have to ever establish that 16px=1em in your style sheet? I know that most people’s browsers default to 16 but is there a way to make that true for everyone?

    I feel kinda dumb for asking this. However, I’m running into an issue where some people are getting really large fonts in various browsers. Didn’t know if this could be the culprit.

    Thanks guys

    # September 11, 2010 at 2:47 am

    There isn’t a way that I know of. It will vary depending on what device you are viewing it in. It’s similar to percentage.

    Why not use px?

    # September 11, 2010 at 6:04 am

    px aren’t re-sizeable in all browsers

    # September 12, 2010 at 4:27 pm

    most reset.css do include

    em {
    font-size: 100%;
    }
    # September 13, 2010 at 10:21 am

    thanks. Yeah I chose em instead of px for the resizing issue. I’ll try out the bit of code that shagzdesign provided. I’ll let you know what I find out.

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".