What is the preferred method for using the new CSS3 selectors in IE 8 and 7?

What is the preferred method to use the new CSS3 selectors in IE 8 and 7? Fireofx, Chrome, Safari, and Opera have better CSS selector support comparable to IE.

Is there a lightweight way to enable support for all secrets in IE. I am not asking for feature detection (Modernizr) and emulating CSS3 (PIE) effects in IE.

I ask you to use all selectors in IE. Therefore, when I write CSS, I can optimize my CSS and html using new selectors.

I already use Modernizr (including HTML Shim), jQuery in almost all projects. I know about IE7.js, but I want to know if there is some other better alternative, because IE7.JS will someday break the layout when we add it to existing websites.

+7
source share
2 answers

Selectivizr is designed specifically for this.

+5
source

I was a bit hesitant when I first started using the CSS3 selector due to browser compatibility, but I find that when I use them, it is only in very obscure situations when I try to achieve a perfect pixel layout. If it turns out that I need to use them for something more important, I always move on to throw a few more classes into my markup, rather than relying on Javascript.

Someday, maybe we can conveniently use CSS3 selectors without worrying about those who support them. We have already seen the fall of one bad browser , so it really is only a matter of time.

Here is a related article on a topic that I like: http://www.alistapart.com/articles/understandingprogressiveenhancement

+2
source

All Articles