469,646 Members | 1,197 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,646 developers. It's quick & easy.

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 1635
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
By using this site, you agree to our Privacy Policy and Terms of Use.