472,118 Members | 1,054 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

Asp.Net 2.0 Theme and CSS Styles Problems

Hello,

I created a theme folder where I place my Skin and CSS files.

I have 5 files:

Base.skin, Base.css, Default.css, Contacts.css, Print.css

Base Skin and CSS files should be used on all pages.

Default.css should be used by Default.aspx

Contacts.css should be used by Contacts.aspx

Print.css should be used by Print.aspx

However, when I run Default.aspx I see the lines:

<link href="App_Themes/Base/Default.css" type="text/css"
rel="stylesheet">
<link href="App_Themes/Base/Contacts.css" type="text/css"
rel="stylesheet">
<link href="App_Themes/Base/Print.css" type="text/css"
rel="stylesheet">

Why are all files loaded?

Contacts.css and Print.css styles are not used in Default.aspx so I am
just getting a slower web site.

Maybe I am looking at this in the wrong way.

Should I place my page CSS files outside of theme folder and load them
"manually" ?

Thanks,

Miguel

Nov 25 '06 #1
1 1677
http://www.validome.org/

"shapper" <md*****@gmail.comwrote in message
news:11*********************@j44g2000cwa.googlegro ups.com...
Hello,

I created a theme folder where I place my Skin and CSS files.

I have 5 files:

Base.skin, Base.css, Default.css, Contacts.css, Print.css

Base Skin and CSS files should be used on all pages.

Default.css should be used by Default.aspx

Contacts.css should be used by Contacts.aspx

Print.css should be used by Print.aspx

However, when I run Default.aspx I see the lines:

<link href="App_Themes/Base/Default.css" type="text/css"
rel="stylesheet">
<link href="App_Themes/Base/Contacts.css" type="text/css"
rel="stylesheet">
<link href="App_Themes/Base/Print.css" type="text/css"
rel="stylesheet">

Why are all files loaded?

Contacts.css and Print.css styles are not used in Default.aspx so I am
just getting a slower web site.

Maybe I am looking at this in the wrong way.

Should I place my page CSS files outside of theme folder and load them
"manually" ?

Thanks,

Miguel
Nov 25 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by pnp | last post: by
7 posts views Thread by CJ Taylor | last post: by
7 posts views Thread by Terry Olsen | last post: by
1 post views Thread by David Thielen | last post: by
2 posts views Thread by Grumpy Aero Guy | last post: by
4 posts views Thread by Neil Jones | last post: by
reply views Thread by leo001 | last post: by

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.