468,257 Members | 1,416 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,257 developers. It's quick & easy.

Fonts size and browsers compatibility

Hi Folks!

I have a problem with fonts size on few browsers. I use size in %, because
WAI recommend that form, but in diffrent browsers I have diffrent sizes. For
example for IE6.0 100% is 100%, but for IE5.x 100% ins't 100%.

Is there any good way to make it compatibility with most browsers ? Maybe I
have to do it one stylesheet for one browsers ?

Any ideas ?

Greets,
Cezary.
Jul 20 '05 #1
1 1632
"Cezary" <ce*****@imail.net.pl> wrote:
I have a problem with fonts size on few browsers. I use size in %, because
WAI recommend that form, but in diffrent browsers I have diffrent sizes.
Of course they do. That's the whole point of using percentages - they
respect the user's default size. So differences are expected and
welcomed.
For example for IE6.0 100% is 100%, but for IE5.x 100% ins't 100%.
URL so we can see for ourselves? There are several things that could
go wrong but I wouldn't want to hazard a guess at this stage.
Is there any good way to make it compatibility with most browsers ?
Don't set font sizes at all. After all 100% is the user's default size
so it's the same as not setting a size at all.
Maybe I have to do it one stylesheet for one browsers ?


Probably not a good idea. If you trigger Standards mode then one
stylesheet will usually suffice for IE6, Mozilla, Safari and Opera.
You can use something like the the tantek hack to feed IE5.x slightly
different styles for those properties where it differs. And then hide
the styles altogether from NN4.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>
Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

10 posts views Thread by minchu | last post: by
21 posts views Thread by Jay Levitt | last post: by
66 posts views Thread by Alan Illeman | last post: by
39 posts views Thread by David Jubinville | last post: by
12 posts views Thread by Daviso | last post: by
57 posts views Thread by Chris Tomlinson | last post: by
32 posts views Thread by rfox | last post: by
4 posts views Thread by DamienS | last post: by
reply views Thread by NPC403 | last post: by
reply views Thread by kermitthefrogpy | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.