Login | Register   
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Web
Expertise: Intermediate
Mar 11, 1999

Cross-Platform Font Uniformity

The fact that HTML fonts display smaller on Macintosh monitors than on PC monitors can cause problems for Web site designers. The cause of the problem is Macintosh monitors default to 72 dpi, while PC monitors default to 96 dpi. You can't do anything to fix the cause, but you can control the effect by using a different style sheet for Mac and PC. Start by detecting the platform and writing in the correct style sheet reference:
 

In the style sheet declarations, the Macintosh fonts should be two points larger than the PC fonts. For example, if in pc_style.css you have:
 
.title {  font-family: Arial; font-size: 10pt; line-height: 11pt }
The equivalent line in mac_style.css would be:
 
.title {  font-family: Arial; font-size: 12pt; line-height: 14pt }
Steve Renaker
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap