Hi folks,

Can anyone tell me what is the syntax for adding a stylesheet applicable to IE8?

I tried to add "stylesheets-conditional[IE 8][all][] = ie8.css" into the theme's info file and placed a css file named ie8.css into my theme folder under sites/all/themes, but it seems that it does not work after I cleared the cache, so I guess perhaps there is something wrong with the syntax above.

Thank you all!

Comments

dpalmer’s picture

Having the same problem with ie7...

stylesheets-conditional[IE 7][all] = css/ie7.less

Anonymous’s picture

@DrupalDan - be sure that your css file isn't in a subfolder, thus needing css/ before the filename. I was having the same issue and it was simply that for me.

@dpalmer - after [all] be sure to add an empty set []. so stylesheets-conditional[IE 7][all][] = css/ie7.less

hope that helps.

astonvictor’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

I'm closing it because the issue was created a long time ago without any further steps.

if you still need it then raise a new one.
thanks