Adding CSS for IE6 only

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
oozypal
New Member
New Member
Posts: 6
Joined: Thu Aug 06, 2009 5:37 pm

Adding CSS for IE6 only

Post by oozypal »

Hello,
I use the following for adding css for ie6 only. How can this handled in CMSMS

Code: Select all

  <!--[if IE 6]> <style type="text/css"> @import url(stylesheets/ie7.css); </style> <![endif]-->
I know ie6 no more  but client wants so :).

Thank you

OOzy
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm
Location: Raalte, the Netherlands

Re: Adding CSS for IE6 only

Post by RonnyK »

Did you try putting it inside your tag in the template?



...


Ronny
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Adding CSS for IE6 only

Post by Dr.CSS »

You can make a style sheet named ie6 or ie7 and do in head...


{stylesheet name="ie6"}



{stylesheet name="ie7"}
oozypal
New Member
New Member
Posts: 6
Joined: Thu Aug 06, 2009 5:37 pm

Re: Adding CSS for IE6 only

Post by oozypal »

Dr. CSS,

Great. However if I do

Code: Select all

{stylesheet}

<!--[if IE 6]>
{stylesheet name="ie6"}
<![endif]-->

<!--[if IE 7]>
{stylesheet name="ie7"}
<![endif]-->
I will get all stylesheets in addition to IE conditions' css's. Meaning I will get ie6.css and ie7.css twice. How can I exclude ie6 and ie7 from this

Code: Select all

{stylesheet}
christiaans
Power Poster
Power Poster
Posts: 300
Joined: Tue Mar 04, 2008 10:37 am

Re: Adding CSS for IE6 only

Post by christiaans »

That is because you have attached those to the template of the page. If you de-attach those, and use the code as provided, it should be working!
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Adding CSS for IE6 only

Post by Dr.CSS »

Using the {stylesheet} tag that way attaches the style sheet to the template when it runs across ie...

You don't attach them to the template...
Post Reply

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