Welcome to WebmasterWorld Guest from 34.238.189.171

Forum Moderators: open

Message Too Old, No Replies

Font sizes

Relative or non relative

     
2:11 pm on Dec 14, 2004 (gmt 0)

Junior Member

10+ Year Member

joined:Jan 20, 2003
posts:46
votes: 0


Recently I started using the em font size in css instead of px or pt. It gives me a better selection of sizes and I love using the em size. All was well util last week when I had a customer that uses AOL. She said the font was very tiny and she could not read it. Any comments on using the em font size? Thanks
10:10 pm on Dec 14, 2004 (gmt 0)

Junior Member

10+ Year Member

joined:Nov 4, 2002
posts:111
votes: 0


1em is based on the browser's text size setting. If the user has it set small, then they will see it small.
6:29 am on Dec 17, 2004 (gmt 0)

New User

10+ Year Member

joined:Dec 13, 2004
posts:33
votes: 0


To accomodate difficult clients you could use a styleswitcher.

Search for "Power To The People: Relative Font Sizes" on Google for an excellent article by Bojan Mihelac on how to do this.

8:15 am on Dec 17, 2004 (gmt 0)

Senior Member

WebmasterWorld Senior Member suzyuk is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Oct 1, 2002
posts:5199
votes: 0


Also IE has difficulty resizing em's and will display font's sized using them very large or very tiny if the users setting is not medium, fortunately this can be very simply cured ;)

set the intial <body> font size in percent!
If it is presently set to 1em (or has no setting because it's relying on the user default) then set it to 100% (if it's 0.8em then change it to 80% etc..)

you shouldn't then need to change anything else, IE will cope should cope with resizing the rest of the em's just fine

If AOL uses IE, then this should correct the problem for your AOL users too?

Suzy

9:54 am on Dec 17, 2004 (gmt 0)

Senior Member

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:May 26, 2000
posts:37301
votes: 0


Very nifty - that one goes in the toolkit. I might even start using ems now ;)
12:15 pm on Jan 11, 2005 (gmt 0)

Junior Member

10+ Year Member

joined:Jan 20, 2003
posts:46
votes: 0


Very good Suzy, Thank you
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members