473,388 Members | 1,427 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

Position of links in page header in relation with themes

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

Nov 4 '08 #1
1 1724
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)
"WT" wrote:
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
Nov 4 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Hans-Michael Rupp | last post by:
Hallo! How can find out the postion of a node with a particular content in the nodeset WITHOUT being in the context? I would like have something like <xsl:variable name="position"...
1
by: HolyCow | last post by:
I've laid out a web page, and it looks exactly how I like it. But I want it to behave well should the user decide to increment the size of the text. The layout is basically a solid colored bar...
4
by: Matt | last post by:
When the user resize the browser, the "Frequently Used Link" and "Table 1" and "Table 2" will shift to the left hand side, but table position is unchanged. I really have no idea how to fix that. I...
5
by: Steve Crawford | last post by:
This morning I got bitten by the "SELECT INTO" / "CREATE TABLE AS" from tables without OIDs bug in 7.4.1. Postmaster killed all the backends and restarted - pg was down for 2 seconds. This...
2
by: Eric Lindsay | last post by:
I have been trying to do a CSS liquid layout imitating a frame, using position: fixed for header, footer, and side navigation, and a fixed background image. Page is valid HTML 4.01 Strict, and is...
5
by: samuelberthelot | last post by:
Hi, I get this exception when I use a themed css file. In my web.config file I have: <pages theme="dRise"> and the trouble page is a master page : <% Response.Write(Header)%> <form...
5
by: Roderik | last post by:
Hi, My logo images are positioned some more to the right in IE6 than in FF1.5. I like them to be as shown in FF1.5. Does anyone have a clue, why they are positioned differently in IE? Problem...
2
by: Dale | last post by:
This seems like it should be simple and I am pretty sure I've done similar things a hundred times before but I sure can't seem to get it right this time. I have a GridView with a column of text...
4
by: =?Utf-8?B?RGF2aWQgVGhpZWxlbg==?= | last post by:
Hi; It's there but I don't see anywhere that I actually tell my pages to include default.css from my theme? And how can I add a second css file from my theme to a specific page? -- thanks...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.