MAC FireFox & Chrome CSS hack

Posted: June 19, 2013 in Java Scripts

For Firefox :
<pre><script language=”javascript” type=”text/javascript”>

if(navigator.userAgent.indexOf(‘Mac’) > 0 && navigator.userAgent.indexOf(‘Firefox’) > 0)

{document.write (‘<style type=”text/css”>section#slider{position:relative; right:1px;}</style>’);}

</script></pre>

 

 

For Chrome :
<pre><script language=”javascript” type=”text/javascript”>

if(navigator.userAgent.indexOf(‘Mac’) > 0 && navigator.userAgent.indexOf(‘Chrome’) > 0)

{document.write (‘<style type=”text/css”>section#slider{position:relative; right:1px;}</style>’);}

</script></pre>

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s