pt sizes instead of px

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
energy0m
Beginner
Beginner
Posts: 1
Joined: Wed Feb 02, 2005 9:35 pm

pt sizes instead of px

Post by energy0m »

Is it possible for the menu to use pt sizes instead of px sizes for the font? if pt sizes are used you can set an absolute size that cannot be modified by a users browser prefrences....if so where can this be changed?

Thanx!
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Yes, you would specify it as pt or em, or percentage. The default is px.

Ruth
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Don't forget to use "" when you specify a particular unit...

Code: Select all

fontsize = "9px";
or

Code: Select all

fontsize = "9pt";
etc.

Also note that px is much better when considering cross-platform compatibility.
John
Post Reply