Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Including Conditional CSS


Reply


3 Posts   1624 Views

Avatar
MKayHavoc

Community Member, 33 Posts

28 August 2008 at 8:43pm

Hi Guys,

Does anyone know how I can add in conditional CSS for IE6 and IE7 through silverstripe?

Cheers

Ryan

Avatar
Willr

Forum Moderator, 5513 Posts

28 August 2008 at 10:29pm

you can do it the standard conditional statement in the Page.ss file, watch out though as the core styles will be included after your IE styles so you need to use higher selectors eg html #Blah p rather then #Blah p.. or you could include them via PHP - http://www.silverstripe.com/site-builders-forum/flat/58061#post60072

Avatar
MKayHavoc

Community Member, 33 Posts

30 August 2008 at 12:48am

Cheers for the link. :-)