Forum Moderators: mack

Message Too Old, No Replies

Font in px or pt?

         

Matrixster

8:47 pm on Sep 1, 2005 (gmt 0)

10+ Year Member



Which is better...or does it really matter?

px or pt

longen

1:12 am on Sep 2, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



How about percentage - 100% font-size will always display at the size preferred by the user - whether its a 21" monitor or a PDA.

encyclo

1:21 am on Sep 2, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Points (pt) are very inconsistent cross-browser - they are primarily a print medium measurement. Pixels are far more logical and should always be preferred over points unless you are writing a print stylesheet.

But as longen said, percentage, em or keyword font sizes are even better, as they adapt to the user's preferences, and they can be resized in Internet Explorer (which is not the case for fonts specified in pixels).

Matrixster

4:33 pm on Sep 2, 2005 (gmt 0)

10+ Year Member



Well I currently use px

I do have some informational pages a user might print up. What should I do?

createErrorMsg

8:40 pm on Sep 2, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I do have some informational pages a user might print up. What should I do?

Create a print [webmasterworld.com] stylesheet [webmasterworld.com] where the font sizes are in PT. Ideally, do as encyclo says and switch the screen font-sizes to EMs (or kws or %) to allow IE users the option to resize.

cEM