What is the correct way to work with CSS browser compatibility?

Is it better to have a different CSS file for each user agent, or is it better to use CSS hacks that only certain browsers can see?

+5
source share
7 answers

None.

It is best to write code that works in all browsers, without the need for browser code or css hacks. This, of course, is not so easy to do, so many use other methods.

The key is to avoid the problems that some browsers encounter (very often Internet Explorer). One of these things is to use indentation rather than margin, because IE does not cope with proper margin markup.

, , , , , . , , , display:inline .

- . ( - , , , , .)

+7

.

css- reset css, -, .

, ( ) IE .

mutliple css ( IE6, ).

+3

, . , Netscape, IE <= 6 .. , , (, FF >= 2, IE >= 7, Chrome, Opera).

0

Internet Explorer . JavaScript, Dean Edward ie7.js, , CSS .

0

css Internet Explorer 6-7 ( ), .

0

, , .

, , - , , , - ( ).

, ", ", .

0

My approach using the PHP class to determine the version of os, browser and browser. You can target any version of almost any browser on any operating system.

0
source

All Articles