What is the consensus on Voice Family?

I just started working in a fairly large company, and my group manages all of its public sites. I first opened the stylesheet today and saw more than 20 instances of designers using hacking voice family to fix IE error. (I don’t know why they allow graphic designers to write any markup at all)

What is the general public opinion about the voice family. Is it worth the time to recommend using conditional IE comments to include custom style sheets?

+3
source share
4 answers

Hacks of any kind are dangerous because they are subject to unintended effects in future browsers (lots break with IE7). Safe CSS filtering methods:

  • (IE only) Using conditional comments. They will always work in Microsoft browsers and will always be ignored by all other browsers, as they are in the comments.
  • The purpose of the objects is with CSS selectors that are only supported by modern browsers to stop older browsers trying to interpret the rules. However, the fact that the browser recognizes the syntax does not mean that it handles it correctly. All you guarantee here is that older browsers will not try to display these rules, and not that modern browsers will do them correctly.

CSS, . , .

+4

" " , Tantek Celik Box Model Hack, CSS IE4/5 Windows - CSS . , .

, - (?) , , , . , , CSS.

. Jeffrey Zeldman Designing with Web Standards , ( ) , :

http://www.amazon.com/Designing-Web-Standards-Jeffrey-Zeldman/dp/0321385551/

, , . , - , Netscape Navigator, .

- -, :

http://www.webstandards.org/

, , , . , , , .

+5

, , . , , . , CSS-, .

+1
source

Do not use conditional inclusions. Use a CSS selector instead , it is much more elegant. Target classes can be configured in separate browsers (and / or versions):

.myClass {...}

.ie6.myClass {...}

+1
source

Source: https://habr.com/ru/post/1697770/


All Articles