Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

IE Conditional Comments for CSS

StashStash
edited January 2007 in Vanilla 1.0 Help
I want to put an IE only CSS file in an extension, and the best way to do this is with IE Conditional Comments (AFAIK). Hw can I get the following code into the head of pages using extensions, because you can just use the normal way for CSS files can you?
<!--[if lte IE 7]> <link rel="stylesheet" href="ie.css" type="text/css" media="screen" /> <![endif]-->

Comments

  • Options
    Cant you just use the extension to add another css document with all your conditional statements in? Alternatively if you just want to get stuff into the head, you should be able to use $Head->AddString()
  • Options
    StashStash
    edited January 2007
    AddString() Wicked and Bad. Thanks Mini xxx ;)

    An example of this can be found in default.php in my JQThickBox extension.
This discussion has been closed.