By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,785 Members | 1,079 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,785 IT Pros & Developers. It's quick & easy.

Fonts size and browsers compatibility

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
"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.