Mac OSX Hack
Have you noticed the that FireFox for PC and Mac OSX work differently. Have you noticed the that Safari for PC and Mac OSX work differently?
.header {height:250px;}
Below is an example of how you would hack Mac User Agent using CSS and Java Script.
Code Example:
<head>
<style type="text/css">
.header{width:200px;height:100px;background:#f00;}
</style>
<script language="javascript" type="text/javascript">
if(navigator.userAgent.indexOf('Mac') != -1)
{document.write ('<style type="text/css">.header{width:210px;}</style>');}
</script>
</head>
<body>
<div class="header"></div>
</body>
Explanation:

What’s going on in the script is that it is placed under the css style tag and therefore over-rides the width of the header tag for anyone using a Mac to 210 pixels.
The nuts and bolts of the script work as follows: The script says if the "navigator.userAgent" (The Browser) ".indexOf('Mac') != -1)" (Is Running On A Mac), then "document.write()" (Write Another Script CSS Tag).
Basically, this is the equivalent of stacking two script tags on top of one another. The Java Script writes the second one if you are on Mac OSX.
Note:
Note: You can also use this script if you want to specify if you want Safari Mac OSX and Safari PC to render differnetly, or for that matter FireFox Mac OSX and FireFox PC to render differently.
Safari Hack
FireFox Hack
