[Grok-dev] How do I use browser-specific stylesheets with grok?

Marcel Klapschus battlefox at gmail.com
Tue Jan 5 04:24:45 EST 2010


I want to use two different stylesheets for my templatepage (one for
IE-Browser, the other for non-IE-Browser). The two stylesheets are placed in
my static folder, but since tags like "<!--[if IE]>" just ignore my
"tal:attributes href", I have no idea how to add the path to my css files
here.

This is what I try in template:

    <!--[if IE]>
    <link rel="stylesheet" type="text/css"
          tal:attributes="href static/menu_ie.css"/>
    <![endif]-->

    <!--[if !IE]>
    <link rel="stylesheet" type="text/css"
          tal:attributes="href static/menu.css"/>
    <![endif]-->

The lines "tal:attributes="href static/menu....." are ignored :-(
-- 
View this message in context: http://old.nabble.com/How-do-I-use-browser-specific-stylesheets-with-grok--tp27025693p27025693.html
Sent from the Grok mailing list archive at Nabble.com.



More information about the Grok-dev mailing list