New Revised CSS Library Forums Web Tools
FAQs Awards Usage Terms Contact
Categories
Other Sections
Sweet Ads
Compatibility
Bookmark online:

FF1+ IE5+ Opr7+

Different CSS depending on OS (Mac or PC)

Author: Dynamic Drive

Description: This script allows you to conditionally apply two different style sheets to your page depending on whether the user's Operating System is Mac or PC (default). Designers will tell you Mac renders certain elements of a webpage differently than PC (ie: font sizes), so this script can be used to overcome this inconsistency. The style sheet to load can either be two global inline styles or external CSS files.

Demo: n/a


Directions: Developer's View

Simply insert the below script into the <HEAD> section of your page:

Select All

Be sure to configure the variables inside per the documentation.