Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » IE Stylesheets

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Page: 1
Go to End
Author Topic: 1414 Views
  • Emms
    Avatar
    Community Member
    9 Posts

    IE Stylesheets Link to this post

    Hi,
    My site is not applying its IE stylesheet when using IE and it seems that it is to do with the order of the stylesheets linked. Since the SS ones are inserted automagically, how do I make sure that the IE stylesheet links appear last?

    Sorry if this is something simple, but I have had a look around and cant seem to find an answer.

    Here is the code:

    <head>
          $MetaTags(false)
          <link rel="shortcut icon" href="favicon.ico" />
          <% base_tag %>
          <title>TAANZ - $MetaTitle</title>
          <!--[if IE 6]>
             <style type="text/css">
              @import url($ThemeDir/css/ie6.css);
             </style>
          <![endif]-->
          <!--[if IE 7]>
             <style type="text/css">
              @import url($ThemeDir/css/ie7.css);
             </style>
          <![endif]-->
       </head>

    and this is how it appears when viewing page source:

    <title>TAANZ - Without a Travel Agent You're on Your Own</title>
          <!--[if IE 6]>
             <style type="text/css">
              @import url(themes/taanz/css/ie6.css);
             </style>
          <![endif]-->
          <!--[if IE 7]>
             <style type="text/css">
              @import url(themes/taanz/css/ie7.css);
             </style>
          <![endif]-->
       <link rel="stylesheet" type="text/css" href="themes/taanz/css/form.css" >
    <link rel="stylesheet" type="text/css" href="themes/taanz/css/typography.css" >
    <link rel="stylesheet" type="text/css" href="themes/taanz/css/layout.css" >
    </head>

    PS. Every time I try to post, the forums break, until I copy everything out and start a new post, then it works:
    Fatal error: Call to a member function setField() on a non-object in /sites/ssopen/www/forum/code/Forum.php on line 647

  • Willr
    Avatar
    Forum Moderator
    5464 Posts

    Re: IE Stylesheets Link to this post

    Regarding the forum error - It comes up if you take too long to post. It times out if you take more then 20mins or so.

    Regarding the IE order issue - http://www.silverstripe.com/site-builders-forum/flat/58061?showPost=60180

    1414 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.