This is a really simple way to add a new class if the user is using a Mac to view the page. If you're viewing this page on a Mac, the above title should be pink. If you're on anything else, it should be blue.
macfix adds a "mac" class to the body of the page. This enables you to target Mac users specifically in your CSS, which proves very useful when you're working with @font-face and type in general. Just put the following at the bottom of your pages and you're away.
<script type="text/javascript">var OSName;if(navigator.appVersion.indexOf("Mac")!=-1){document.getElementsByTagName('body')[0].className+='mac';};</script>
After this, you're on your own - you'll have to look at your page on a Mac, see how it renders, and then work out what else needs to be done using the body.mac CSS rule.
A very simple script by Jim Groome. Read more here.