CSS font size

Discussion in 'HTML Basics' started by Gavin, Mar 17, 2007.

  1. Gavin

    Gavin New Member

    In your opinion when doing CSS is it better to use % or pixel for the font size?
  2. louie

    louie New Member

    i think font-size is better, you never know what resolution screen people have and it might be too big or too small.
  3. Gavin

    Gavin New Member

    That's what I was thinking. Thanks for clearing that up for me and thankfully I am using pixel size already. :cool:
  4. ph3n0m

    ph3n0m New Member

    well I use % :)

    usually set it at 80% as a default - works fine
  5. mneylon

    mneylon Administrator Staff Member

    I'd have thought that percentages were better or maybe pixels (trying to remember what CSS I learnt ... )
    From memory the font size differs depending on the OS...

    Of course I could be completely wrong :)
  6. louie

    louie New Member

  7. SlitheryImp

    SlitheryImp New Member

  8. daviddoran

    daviddoran New Member

    I set a percentage font-size in the html/body section. (A percentage of the browser default which should be 16px if I remember) and then ems after that.
    IE7 now respects user increases in the text sizes along with the other browsers so it should not be such a problem to use px sizes anymore.
  9. enzo

    enzo New Member

    I usually use pixels but em is best/recommended (as mentioned) as it allows users to resize the text.
  10. gary.b

    gary.b New Member

    Sound advice :p There was an article on ALA about this but i can't find it.
  11. daviddoran

    daviddoran New Member

    Yeah, I probably picked it up from that article.
  12. jkeyes

    jkeyes New Member

  13. jayk

    jayk New Member

    I use pixels, sometimes %.

Share This Page