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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

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

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

Including Conditional CSS


Go to End


3 Posts   2272 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, 5523 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. :-)