Forum : How to make web page compatible with internet explorer and mozilla?
Brief description  about Online courses   join in Online courses
View abhijeet  kumar 's Profile

How to make web page compatible with internet explorer and mozilla?

I am making web pages but when i am executing it on mozilla its good but when i open the page on internet explorer its interface becomes distorted.I do nt know how to solve the problem. I am fixing with makin each things with % but its very difficult for me to set it on specific position.Plz help me out.
Asked by abhijeet kumar | Jul 17, 2010 |  Reply now
Replies (2)
View abhijeet kumar 's Profile
Can u give me any proper example for this so that i can better understand...please make it urgent bcoz i have to complete my assignment.
Jul 20, 2010
View nagaraj s 's Profile
Hi

<link href="homeoutside/formozilla.css" rel="stylesheet" type="text/css" />
<link href="homeoutside/forie.css" rel="stylesheet" type="text/css" />
<link href="homeoutside/forie7new.css" rel="stylesheet" type="text/css" />


<!--[if IE 6]>
<link href="homeoutside/forie.css" rel="stylesheet" type="text/css" />
<![endif]-->

<!--[if IE 7]>
<link href="homeoutside/forie7.css" rel="stylesheet" type="text/css" />
<![endif]-->


We use the above code to overcome the browser compatibility issue.

How it works is. We have 3 different style sheets for IE6, IE7 and Mozilla.

First style sheet "formozilla.css" will work as the master style sheet. If you need any changes to be made in the master css file to adjust IE6 or IE7 just add the same id in the css file for IE6 and make the style change there.

So when the browser reads if that browser is IE6 it will compare both the style sheet, master style sheet and the IE6 style sheet. So if the browser find any change in the CSS file for IE6 it will take that particular style.

The beauty is Mozilla's style sheet will work for all other browsers other than IE. But IE6 style sheet wont work for IE 7 also. Hats off to microsoft :-)


And work more you will get more idea.

Regards
mano...
Jul 18, 2010