ie-classes.php generate CSS classes like IE conditional comments to add to <html>
class attribute.
There is also a client side version (javascript) : https://gist.github.com/yukulele/11185298
<?php
require "ie-classes.php";
?><!doctype html>
<html class="no-js <?=ieClasses()?>">
html.ie h1 {
color: red;
}
html.ie8 h1 {
color: orange;
}
html.gte-ie9 h1 {
color: blue;
}
html.no-ie h1 {
color: green;
}