PX or PT {tis all good ya}

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply

PX or PT {tis all good ya}

Poll ended at Thu Nov 06, 2003 9:28 pm

I use PX.
7
88%
I use PT.
1
13%
 
Total votes: 8

Gen-ik
DevNet Resident
Posts: 1059
Joined: Mon Aug 12, 2002 7:08 pm
Location: London. UK.

PX or PT {tis all good ya}

Post by Gen-ik »

Do you use PX or PT when setting the font sizes in your CSS.... and why?


EDIT: The best answer wins the soggy cookie that's just broke and plopped in to my coffee.
Cruzado_Mainfrm
Forum Contributor
Posts: 346
Joined: Sun Jun 15, 2003 11:22 pm
Location: Miami, FL

Post by Cruzado_Mainfrm »

i use px
d3ad1ysp0rk
Forum Donator
Posts: 1661
Joined: Mon Oct 20, 2003 8:31 pm
Location: Maine, USA

Post by d3ad1ysp0rk »

px because that's what I'm used to..
User avatar
scorphus
Forum Regular
Posts: 589
Joined: Fri May 09, 2003 11:53 pm
Location: Belo Horizonte, Brazil
Contact:

Post by scorphus »

I use pt. Follow the link.
User avatar
phice
Moderator
Posts: 1416
Joined: Sat Apr 20, 2002 3:14 pm
Location: Dallas, TX
Contact:

Post by phice »

I've always used px for font-size, and I always will. :)
Image Image
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

I don't use either, I use the relative font sizes (at the moment x-small, small, medium et.al but I want to move to em) because the absolute font sizes cannot be resized in IE via the browser. This means that absolute font sizes are a total no no because of accessibilty reasons. I should add that this is an IE and older browser problem, Moz Firebird can happily resize fonts set in either absolute or relative units.

Mac
m3rajk
DevNet Resident
Posts: 1191
Joined: Mon Jun 02, 2003 3:37 pm

Post by m3rajk »

i don't use either. i wanted to find something like the size =1 and size=-1 in the font tag that used to be in html that would be relative. after talking to someone that knows css better i found out the solution:EM however, that's not entirely true. while it's relative you can't do negative. when i mentioned that i was told that a change .2 is about the same as 1 in the size, thus

Code: Select all

font-size:.8em
is about the same as

Code: Select all

<font size="-1">
and

Code: Select all

font-size:1.2em
is about

Code: Select all

<font size="+1">
microthick
Forum Regular
Posts: 543
Joined: Wed Sep 24, 2003 2:15 pm
Location: Vancouver, BC

Post by microthick »

I use pt. There is less visual difference when using pt on ns4+, ns7 and ie5+ than there is with px.
User avatar
JAM
DevNet Resident
Posts: 2101
Joined: Fri Aug 08, 2003 6:53 pm
Location: Sweden
Contact:

Post by JAM »

As Mac, I use the x-small, small etc. version for less difference browser-wise.

And you can keep the cookie. =)
User avatar
Johnm
Forum Contributor
Posts: 344
Joined: Mon May 13, 2002 12:05 pm
Location: Michigan, USA
Contact:

Post by Johnm »

I use px only because that is what I learned first and old habits are hard to break.

John M
User avatar
cybaf
Forum Commoner
Posts: 89
Joined: Tue Oct 01, 2002 5:28 am
Location: Gothenburg Sweden

Post by cybaf »

px is the most logic to me.... however better praxis is to use relative fontsizes for people who can't see very good.... so

Code: Select all

size="-2"
is what I normally use
m3rajk
DevNet Resident
Posts: 1191
Joined: Mon Jun 02, 2003 3:37 pm

Post by m3rajk »

cybaf wrote:px is the most logic to me.... however better praxis is to use relative fontsizes for people who can't see very good.... so

Code: Select all

size="-2"
is what I normally use
this is the same reason i like the relative sizes. in my family i am the only person who doesn't use glasses. my sister and mother need them to drive. my father toread. thus the issue of being able to resize through your browser is something i am quite aware of. i design pages to look best in medium (12 point) but to allow the user to modify. as i said earlier, i was annoyed that css did not have a +1/-1 way to do it until i was told the trick with em. thus em is the best way to go consider .2 to be the rough equivalent of the html tag +1/-1

therefore:

css em | html's font tag
0.2 | -4
0.4 | -3
0.6 | -2
0.8 | -1
1.0 |
1.2 | +1
1.4 | +2
1.6 | +3
1.8 | +4


and so on
Post Reply