daydreamer Posted December 2, 2008 Share Posted December 2, 2008 I am using CSS to layout my pages. In firefox and chrome they display perfectly. In each version of IE they display differently and the layout is messed up. I am going to write a different css file for each version of internet explorer(5.5+). is it best to use code like this: <!--[if IE]> <link rel="stylesheet" type="text/css" href="ie.css" /> <![endif]--> or write some PHP which uses $_SERVER['HTTP_USER_AGENT'] to find the browser type then echo the link to the right CSS file? Thanks Link to comment https://forums.phpfreaks.com/topic/135196-best-way-to-tackle-cross-browser-compatibility/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.