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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

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

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

IE Stylesheets


Go to End


2 Posts   2137 Views

Avatar
Emms

Community Member, 9 Posts

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

Avatar
Willr

Forum Moderator, 5523 Posts

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