Position of links in page header in relation with themes

W

WT

Hello,

My web application uses themes, selecting a theme from codebind for current
page object.
Each theme includes several css files.
And I also add some specific javascript from codebehind as links in the
header object.
Using VS2008, framework 3.5, C#.

I need to set conditional statements in the header section of page to
correct IE css bugs, something like

<head>
<link rel="stylesheet" type="text/css" href="myprimary.css" />
<!--[if IE]>
<link rel="stylesheet" type="text/css" href="myiehacks.css" />
<![endif]-->
<!--[if lte IE 6]>
<script type="text/javascript" src="myiescripts.js"></script>
<![endif]-->
<!--[if lt IE 6]>
<link rel="stylesheet" type="text/css" href="myiehacks-5.5.css" />
<![endif]-->
</head>

and these statements need to be after the global css installed by themes,
how to do this in a declarative way or/and in codebehind ?
What is the rule for css added by themes: do they come before or after
declaratives elements already in <head> ?
And what about thoses added during OnPreRender in the header object of the
page ?

Thanks for help.

CS
 
B

bruce barker

the theme css link will be rendered after all other content in the header,
too late for you. you can either include your own themed link (via codebehind
and a placeholder), or place your ie hacks after the <head>


-- bruce (sqlwork.com)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,065
Latest member
OrderGreenAcreCBD

Latest Threads

Top