css font question

by cssavenger(at)attbi.com

 Date:  Sat, 03 Aug 2002 15:58:52 +0000
 To:  hwg-basics(at)hwg.org
  todo: View Thread, Original
1)  If the browser is CSS compliant then it should 
display font-size: 24; as whatever the browsers default 
fontsize is since, I don't believe that font-size: 24; 
is valid css, I believe that you must include a unit of 
measure (px, pt em or whatever) for it to indeed be 
valid.

2) The reason it works when you specify no unit of 
measure is most likely because your browser default out 
to the it's default print size which can be altered by 
the view menu.  I am not sure why when you use em it is 
possible to change it :confused: (maybe when I wake up 
I will check my ref book)

3) While I am no one to say what unit of measure is 
best I have had this discussion around many forums and 
the consensus seem to been px is best as it is the 
closest to the same across all systems & browsers.

--
Caislander
>From the land of Sunshine Surf & 
Code

1) Simple question: When you list a number for font size, what default 
measurement unit does the browser use?

e.g. font-size: 24;



2) Bigger Question: I notice that increasing or decreasing the font size in the 
browser (e.g., changing to large font under view in IE) does not effect font 
size when I use px or pc or pt ... it does, however, seem to work when I don't 
specify a measurement unit and when I use em ... 

... I think I understand with pixels, in that you couldn't change the pixel size 
without changing resolution, but I don't understand why this would not work with 
pc or pt and, of course, this brings up the biggest and probably most difficult 
question, which is what measurement is best to use?

*******************************************************************
Richard H. Hall, Ph.D.
Associate Professor, Information Science and Technology
Director, Media Research Laboratory
University of Missouri - Rolla
http://medialab.umr.edu/rhall
*******************************************************************

HTML: hwg-basics mailing list archives, maintained by Webmasters @ IWA

This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.