By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,369 Members | 1,188 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,369 IT Pros & Developers. It's quick & easy.

Asp.Net 2.0 Theme and CSS Styles Problems

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
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.