Community Documentation

Conditional Stylesheets

Last updated January 18, 2011. Created by JohnAlbin on January 18, 2011.
Log in to edit this page.

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.

Page status

No known problems

Log in to edit this page

About this page

Drupal version
Drupal 6.x, Drupal 7.x
Audience
Designers/themers
Drupal’s online documentation is © 2000-2013 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License. Comments on documentation pages are used to improve content and then deleted.