17488 Posts in 4473 Topics by 1978 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1316 Views |
-
IE Stylesheets

24 April 2008 at 10:42am
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 -
Re: IE Stylesheets

24 April 2008 at 5:38pm
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
| 1316 Views | ||
|
Page:
1
|
Go to Top |


