OZONE Asylum
Forums
XML - XSL - XSLT - XHTML - CSS - DOM
header tags and IE and MZ FB
This page's ID:
11002
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
All browsers except IE allow users to adjust even absolute font sizes (ie, those set in pixels, etc.). Since a lot of people use IE, and IE is probably not going to change for quite some time, I prefer to stick with ems. 1 em is the default text size, and is equivalent to 100%. 1.5 em, therefore would be equivalent to 150%. The only difference between percentages and ems is the relationship to the parent element's font size (and I could very well be wrong on this, so someone correct me if I am). The way I understand it, a percentage value will be a percentage of the parent value. Thus, if I set the body font size to 125% (for example) and then set the font size in a certain paragraph class to 100%, the font size will be 125% of the user's default size. Ems always refer to the default font size with no regard for inheritance. To use the above example, if I set the body font size to 1.25 em and the paragraph class to 1 em, you will see a difference (namely, the body font size will be 25% larger). [Edit: so, in effect, using 100% is like leaving the font-size out, whereas using 1 em is like resetting the size to the default. Just trying to make sure this makes sense.] I will admit that I am pretty much going on gut instinct and vague memories, but I will run over to the W3C and see if I can't find solid evidence for this. At any rate, I would personally recommend relative text sizes, at least until the day that the most widely used browser supports user changing of absolute font sizes (notice I did not say "IE"--one can always hope). Of the two options of percentages and ems, I find ems to be less confusing and more aesthetically and semantically pleasing. But that's just me, and I've been known for being weird. [Edit: This from the W3C under "percentage" in the "font size" section: "A percentage value specifies an absolute font size relative to the parent element's font size. Use of percentage values, or values in 'em's, leads to more robust and cascadable style sheets." ([url=http://www.w3.org/TR/REC-CSS2/fonts.html#font-size-props]complete text[/url]) As I mentioned above, ems refer to a "fixed" unit (the default font size), and thus are not dependent on the parent element's font size. That's why I use ems.] [img]http://liminality.org/asylum/sigs/[/img] [url=http://www.liminality.org]www.liminality.org[/url]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »