Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS font sizing

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #30214
    kevsyers
    Participant

    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

    #80068
    jamygolden
    Member

    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?

    #80052
    GreatPotato
    Member

    px aren’t re-sizeable in all browsers

    #79984
    shagzdesign
    Member

    most reset.css do include

    em {
    font-size: 100%;
    }
    #79950
    kevsyers
    Participant

    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)
  • The forum ‘CSS’ is closed to new topics and replies.