Page 1 of 1
Adding CSS for IE6 only
Posted: Sat Aug 08, 2009 11:14 am
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
Re: Adding CSS for IE6 only
Posted: Sat Aug 08, 2009 11:38 am
by RonnyK
Did you try putting it inside your tag in the template?
...
Ronny
Re: Adding CSS for IE6 only
Posted: Sat Aug 08, 2009 9:47 pm
by Dr.CSS
You can make a style sheet named ie6 or ie7 and do in head...
{stylesheet name="ie6"}
{stylesheet name="ie7"}
Re: Adding CSS for IE6 only
Posted: Mon Aug 10, 2009 7:05 am
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
Re: Adding CSS for IE6 only
Posted: Mon Aug 10, 2009 8:50 am
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!
Re: Adding CSS for IE6 only
Posted: Mon Aug 10, 2009 5:17 pm
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...