Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Archive

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

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

IE Stylesheets


Reply

2 Posts   1465 Views

Avatar
Emms

24 April 2008 at 10:42am Community Member, 9 Posts

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

Avatar
Willr

24 April 2008 at 5:38pm Forum Moderator, 5511 Posts

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