Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Make text appear the same size across Mac and Windows

Status
Not open for further replies.

BabyJeffy

Programmer
Joined
Sep 10, 2003
Messages
4,189
Location
GB
I've been using this simple technique for a few years, and find I keep coming back to it again and again. I have no idea who deserves the credit for suggesting it initially (maybe Dan Cederholm?) but I wanted to enshrine it in an FAQ for future reference:

faq215-6624

Code:
<style type="text/css">
   html>body { font-size: 16px; }
   body { font-size: 100%; }
</style>

<!--[if gt IE 6.9999]>
<style type="text/css">
   html>body { font-size: 100%; }
</style>
<![endif]-->

Of course, there is a full description of how it works in the FAQ [smile]

Cheers,
Jeff

[tt]Jeff's Page @ Code Couch
[/tt]

What is Javascript? FAQ216-6094
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top