Smartly Using Conditional Comments

For some time now I’ve had the standard way of using IE conditional comments to check for IE8 and IE7:

But thanks to the latest WordPress theme ‘twentyfourteen‘, I’ve found a much smarter way of being able to keep all your extra IE code in one CSS file:

Here, it simply checks first for IE7 or lower, then IE8, and adds a respective class, or it just uses a regular <html> tag. This way you can target  browsers directly in your core CSS file:

In all honesty, I rarely have to actually use conditional comments nowadays, but for the rare times that I do this is a much more elegant way of implementing them.