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   1593 Views

Avatar
MKayHavoc

28 August 2008 at 8:43pm Community Member, 33 Posts

Hi Guys,

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

Cheers

Ryan

Avatar
Willr

28 August 2008 at 10:29pm Forum Moderator, 5511 Posts

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

30 August 2008 at 12:48am Community Member, 33 Posts

Cheers for the link. :-)