gibigbig Posted November 23, 2007 Share Posted November 23, 2007 ok i want to select a certain css file depending on the browser. the code works fine IE6 IE7 and all mozilla versions. but it has issues in safari? i dont know whats wrong here, can anyone help by suggesting a working code? Quote Link to comment Share on other sites More sharing options...
phpQuestioner Posted November 23, 2007 Share Posted November 23, 2007 are you detecting safari and using document.write in your safari if else condition? sKunKbad, does make a good point; you really should try to make your web pages more cross browser compatible. also this thread does not belong in the forum; it belongs in this forum: http://www.phpfreaks.com/forums/index.php/board,5.0.html or depending on your hack - this forum http://www.phpfreaks.com/forums/index.php/board,6.0.html Quote Link to comment Share on other sites More sharing options...
sKunKbad Posted November 23, 2007 Share Posted November 23, 2007 A solid css doesn't need hacks or alternative stylesheets. Instead of spending time directing browsers to the appropriate stylesheet, you should look into why your stylesheet isn't working for all browsers. The reason why I say this is that Safari is one of browsers that adheres more closely with so called web standards. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.