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

By submitting your information, you agree that devx.com may send you DevX offers via email, phone and text message, as well as email offers about other products and services that DevX believes may be of interest to you. DevX will process your information in accordance with the Quinstreet Privacy Policy.


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

WEBINAR:

On-Demand

Application Security Testing: An Integral Part of DevOps


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
×
We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.
Thanks for your registration, follow us on our social networks to keep up-to-date