I’m using this script to load CSS for just Chrome browsers, but for some reason Firefox and Safari are picking up the styles I’m using only for chrome.css.
<script type="text/javascript">
if (navigator.userAgent.toLowerCase().indexOf('chrome') > -1)[SIZE=4][COLOR="#FF0000"];[/COLOR][/SIZE]
[SIZE=4][COLOR="#FF0000"]Here's your problem ........................ ^[/COLOR][/SIZE]
document.write('<link rel="stylesheet" type="text/css" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/chrome.css">');
</script>
Mistakes like this – that are small, yet hard to spot – are why almost every C-style language style guide recommends that you always use braces, even if the block is only one statement long.