Conditional Stylesheets

Internet Explorer implements a proprietary technology called Conditional Comments. While web developers frown upon technologies that aren't cross-browser supported, many CSS developers have found Conditional Comments very useful since they can be used to fix the rendering of CSS in IE by placing IE-only CSS inside conditional comments.

The Conditional Stylesheets module allows themes to easily add conditional stylesheets to the theme's .info file.

Conditional Stylesheets on Drupal 8

This module allows you to add "conditional-stylesheets" in a much simpler

For Drupal 6

Using this module is easier than manually adding conditional comments specifically to the page.tpl.php template or appending them to the

For Drupal 7

Without this module, the only way to have IE conditional stylesheets was to add 37 lines of code (more if you want to add more than one

Guide maintainers