Greetings. I’m having trouble getting a site to show up consistent in Firefox and Chrome. My code validates, but the main navigation appears substantially different in Chrome that I would like it to. I found a recommendation to pull in a style sheet specific to Chrome, via javascript. Here is the code I’m using which doesn’t seem to be working:
<code>
[COLOR=”DarkRed”]<script type=”text/javascript”>
if (navigator.userAgent.toLowerCase().match(‘chrome’)
document.write(‘<link rel=”stylesheet” type=”text/css” href=”css/stylechr.css” />’)
</script>
</code>
The doc-type declaration I’m using is XHTML 1.0 transitional.
Thanks in advance for any assistance.