Jump to content

best way to tackle cross browser compatibility


daydreamer

Recommended Posts

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

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.