Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# Nicole 6/27/2006 11:41 AM
Because IE is such a lovely and special browser, I have a secondary stylesheet specific to it. This will make it easy to yank out extraneous IE specific styles when (if?) IE adds support for certain CSS attributes and selectors. However, I'm also having a hard time including it correctly. My current attempt:
<!--[if IE]>
        <link rel="stylesheet" type="text/css" href="ieonly.css" runat="server" />
<![endif]-->

As far as I can tell, Cuyahoga doesn't support multiple stylesheets, but am I missing something?

Thanks!
# martijnb 6/27/2006 12:34 PM
This doesn't work when you add the code to a template?

Multiple stylesheets are not supported out of the box, but you can hack around this issue with including secondary stylesheets in the template (.ascx). I have to confess that I do it like that myself too :).
# Nicole 6/27/2006 12:44 PM
The runat="server" part doesn't seem to be working to automatically include the correct template path. Perhaps the special if/endif code messes it up? If I manually set the href to the full path it works, but I'd prefer not to do that if possible.
# martijnb 6/27/2006 3:20 PM
I don't remember anymore if the link tag allows the runat="server" attribute. In the past I think I also ran into this a couple of times.

Anybody else?