css font px vs. pt
- Started
- Last post
- 9 Responses
- ldww
whats better to use for font size in css? px or pt?
i have always used pt, but i noticed that NT uses px....
- instantok0
use px
pt can appear different in some browsers...px is always the same
- rasko40
using pt gets you different sizes especially compared between pc and mac.
- donal0
this is the way to go;
specify an Em (1) value for the body tag, then percentages (0.7%) for all others e.g. TD.
This is cross browser and allows users to adjust the font size according to their preferences
- rabattski0
logically the px size aren't the same cross browsers / cross platform because we don't want to have something that works everywhere. seriously. i thought a px is a px on every machine but that's not true, it depends on type as well. but most common browsers are the same though.
- xrusos0
donal got it. that's the way to go if you want to ensure solid cross browser and standards compliant design.
that said, i usually use px. but i want to head more toward em's and %'s.
- ********0
donal's got it, that's a good way to do it. ;)
- rabattski0
really? dunno. i wrote a javascript that generates stylesheets based on platform / browser type. seems to tackle the problem. however you have to check that with every new release.
- ldww0
what is em? emphais?
- rabattski0
em is a typographic unit for measuring.