Do we still care about IE8, 7 and 6? I feel it’s becoming more okay to ignore them now, but IE8 support is still a bit of a should-I-or-should-I-not case.
There are 3 really helpful scripts to load in your theme if you want to support one or more of them. They add better compatibility for “modern” things such as responsive design, CSS pseudo-classes and attribute selectors as well as HTML5 tags.
We load these if we see that the web browser used is older than IE9:
- html5shiv.js (source) – HTML5 support
- selectivizr.js (source) – CSS pseudo-class support (eg :last-child)
- respond.js (source) – mediaquery support
Read more
Often you run into CSS issues with different browsers, and one way to easily make browser-specific CSS is if you have a browser class added to the body tag of your theme. That way you can for example just add .ie8 .myclass { cssfix }
to specify CSS that will only be read by a certain browser (IE8 in this case).
Read more