D
design2
Guest
basically ive had problems using divs instead of tables working in most common browsers and platforms, but i refuse to be beaten and believe my best bet now is to detect on index page which platform/browser and then use the desired css file.
I only have 2. ie.css and mozilla.css which i think should cover most.
So i tried using this http://techpatterns.com/downloads/scripts/javascript_browser_detection.txt
but when i type in the header code
<link rel = "stylesheet" type = "text/css" href = "css/main.css" />
<script type = "text/javascript" src = "/js/browser_detection.js"> </script>
<script type = "text/javascript>browser_css( ); </script>
</head>
it messes up cos the "text/javascript>browser_css( ); doesnt seem to be closed. so i made a file and have checked the file names and that the directories are right but still no go it is not picking up different css files just using the default main.css
if anyone has time or has done this before can u post the code i put in the head and the code i need in the file.js ? thanks.
I only have 2. ie.css and mozilla.css which i think should cover most.
So i tried using this http://techpatterns.com/downloads/scripts/javascript_browser_detection.txt
but when i type in the header code
<link rel = "stylesheet" type = "text/css" href = "css/main.css" />
<script type = "text/javascript" src = "/js/browser_detection.js"> </script>
<script type = "text/javascript>browser_css( ); </script>
</head>
it messes up cos the "text/javascript>browser_css( ); doesnt seem to be closed. so i made a file and have checked the file names and that the directories are right but still no go it is not picking up different css files just using the default main.css
if anyone has time or has done this before can u post the code i put in the head and the code i need in the file.js ? thanks.