conditional statements with cms_stylesheet

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
echobrin
Forum Members
Forum Members
Posts: 54
Joined: Sat May 29, 2010 6:03 pm

conditional statements with cms_stylesheet

Post by echobrin »

I'm running version 1.11.4 and using the Tabbed2 template. Since the change from {stylesheet} to {cms_stylesheet} I can't get my conditional statement for older versions of IE to work.

Here's what I put in the head section of the template:

Code: Select all

<!--[if lte IE 7]>
{cms_stylesheet name='tabbed2_layout_ie6-7'}
<![endif]-->
<!--[if lte IE 6]>
{cms_stylesheet name='tabbed2_layout_ie6'}
<![endif]-->
When I view the site in IE7, it isn't grabbing the correct stylesheet. I don't think it's a problem with the stylesheet itself because it used to work. I think it stopped working when I upgraded to whichever version of CMSMS required the change to cms_stylesheet. I think before that I had the above code but with stylesheet instead of cms_stylesheet, and I think it was working like that. (Sorry, I've tried a couple things and have lost track!)

And yes, I know IE7 is old, but the person I'm helping with this site is using it and the layout is off. :(
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1968
Joined: Mon Jan 29, 2007 4:47 pm

Re: conditional statements with cms_stylesheet

Post by Jo Morg »

Try swapping the conditionals order... :)
I believe these should be in crescent order by version.

Code: Select all

lte: less than or equal to
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
Post Reply

Return to “Layout and Design (CSS & HTML)”