Return to Snippet

Revision: 60329
at November 2, 2012 17:37 by abdelatifs


Initial Code
function MYTHEME_preprocess_html(&$variables) {

    // Add conditional stylesheets for IE
    drupal_add_css(path_to_theme() . '/css/ie-8.css', array('group' => CSS_THEME, 'browsers' => array('IE' => 'lte IE 8', '!IE' => FALSE), 'preprocess' => FALSE, 'weight' => 115));
    drupal_add_css(path_to_theme() . '/css/ie-7.css', array('group' => CSS_THEME, 'browsers' => array('IE' => 'lte IE 7', '!IE' => FALSE), 'preprocess' => FALSE, 'weight' => 115));

}

Initial URL


Initial Description


Initial Title
conditional stylesheet iE

Initial Tags


Initial Language
Other