Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Px, pt or em for font sizes?

  • 04-03-2010 12:22pm
    #1
    Registered Users, Registered Users 2 Posts: 387 ✭✭


    So what are the differences between the 3 ways of specifying font sizes? I thought I read somewhere that it is better to use pt or em (can't remember the reason) but vbulletin uses px and that is probably the most widely used internet software out there.


Comments

  • Registered Users, Registered Users 2 Posts: 7,740 ✭✭✭mneylon


    So what are the differences between the 3 ways of specifying font sizes?
    http://www.kyleschaeffer.com/best-practices/css-font-size-em-vs-px-vs-pt-vs/
    vbulletin uses px and that is probably the most widely used internet software out there.
    Err no it's not

    The most widely used software is probably something like Apache :)


  • Registered Users, Registered Users 2 Posts: 1,571 ✭✭✭herya


    Ems are relative, pxs and pts are not. It used to make a difference as ems were easier for visitors to scale (display bigger font in their browser) when needed. Modern browsers have bulit in font or site scaling though so this factor is less important now. It is still a factor in mobile design though where easy scaling is a big plus.


  • Registered Users, Registered Users 2 Posts: 1,802 ✭✭✭cormee


    You should never fix your font sizes. Ems and % are better for accessibility and makes for better housekeeping - set your body text size to whatever % you think looks best in your normal stylesheet and scale every other font size based on that.

    When you need to do different style sheets for accessibility (ie. large font version of your site) or mobile devices, as already mentioned, you only need to increase the body text size. If you use fixed sizes you'll need to change your sizes on all instances where the size is fixed.


Advertisement