Sorry if the question is a bit basic.
I generally express my font sizes in pixels, originally to handle the
Macintosh/Windows font size differences (though I believe that they both
now treat points the same way, at least within the browser window).
It has been suggested that one should use ems to allow browsers to
increase or decrease the text size. However, I have never had trouble
with pixels.
Which is best practice and why?
Also, I generally specify a font size for the body only, and the rest of
the elements as percentages (eg h1 { font-size: 200%; }). Any suggestions?
Thanks,
Mark
I generally express my font sizes in pixels, originally to handle the
Macintosh/Windows font size differences (though I believe that they both
now treat points the same way, at least within the browser window).
It has been suggested that one should use ems to allow browsers to
increase or decrease the text size. However, I have never had trouble
with pixels.
Which is best practice and why?
Also, I generally specify a font size for the body only, and the rest of
the elements as percentages (eg h1 { font-size: 200%; }). Any suggestions?
Thanks,
Mark
Comment