What CSS code do I use to make my site render in different browsers?

I am in college and finished my first year. I want to continue web applications as a hobby. I created a live web application with MS Visual Studio 2010, but I know that I need to make it compatible with other browsers.

I understand that I need to test it in other browsers and see the inconsistencies that have occurred, but how to fix them. My teacher says I need CSS code for each browser, but how do I do this?

Thanks in advance for your help.

+3
source share
5 answers

CSS reset . , , CSS .

+3

, CSS

, , . , , 99% , , -. IE ( "-" , IE.

, :

( IE), , ( ), -. html. " CSS" HTML, -.

, , :

http://dowebsitesneedtolookexactlythesameineverybrowser.com/

+2

, , - CSS Google Chrome. Firefox 4. , , , CSS , , , .

IE. , , IE6. . . , IE9 IE8? IE9, - , , . IE8, CSS , , IE. :

<head>
    <link rel="stylesheet" type="text/css" href="your-main-style.css" />
    <!--[if lte IE 8]>
        <link rel="stylesheet" type="text/css" href="ie8-and-down.css" />
    <![endif]-->
</head>

, , . , .

, , , , , , . , , .

+2

IE .

, , -moz-, -webkit- .. -IE , (x) html, , , .

+1

All Articles