OZONE Asylum
Forums
Site reviews!
Try it now
This page's ID:
10408
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
Actually, I's recommend setting your font sizes in percentages (%), rather than ems. I've noticed odd behavior in IE for Windows in which ems seem to resize radically when using the browser controls. For example, specifying "smaller" will make the text almost unreadable, and specifying "larger" makes the text huge. Apparently, this quirk doesn't apply when using percentages. As for how to use relative measures, think of it this way: When you don't apply any specific font sizing, the default size that the browser renders is said to be "100%" or "1 em". Therefore, if you wanted the text to be smaller you would set, perhaps "80%" or "0.8em". If you wanted it to be larger, you would say "120%" or "1.2 em". You still have total control over text sizing. Only now, people with vision problems can resize it to their needs. Another thing is not to confuse "%" when used with font-sizes with the "%" used for box sizing. The font size percent means "relative to the default font size". The box sizing percent means "relative to the size of the browser window". Another thing that can be confusing when using relative font sizes, is that all elements within an element will inherit the font size of the parent. And if you set a font size for the "child" element, that font size will be multipied by that of the parent. For example: Say you have a div called "test" and you used this CSS: [code]#test { font-size: 90% }[/code] That means any text inside that div should be 90% of default text size. What if you had a paragraph within the "test" div and this CSS code? [code]p { font-size: 90% }[/code] That means that any text inside that paragraph should be 90% of the parent element, in this case: the "test" div. [b]So 90% mulitpied by 90% equals 81%[/b]. Any text inside a paragraph inside the "test" div, will be 81% of the browser default. Get it? Phew. Hope that didn't come across as too confusing. Need any more help, just ask. [img]http://ozphactor.home.comcast.net/asylum/sig001.gif[/img]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »