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

Masterpages/themes messes up designmode

P: n/a
I'm porting an application from asp to asp.net2.0 and thought this would be
a good time to test masterpages and themes.

The end result is fine but I find it difficult to recreate forms in
designmode since the pages gets very cluttered (controls on top of each
other, stylesheet from theme not applied). The forms use both layers with
absolute positioning and styles (from stylesheet in themes).

Does everybody have the same problems with themes/masterpages in designmode
or have I done something wrong with my pages?
Theme is applied by web.config.

Thanks
Feb 27 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Answering ny own questerion...

I guess that stylesheets in themes are not actually applied until the page
is displayed.
So moving my stylesheet to my masterpage using <link href="Style.css"
rel="stylesheet" type="text/css"> solves the problem. Since I only wanted to
use one theme anyway this solves my problem with design view.

Does anyone know how to solve this if stylesheet cannot be placed in
masterpage (if several themes are used)?

/ Markus

"Markus Rytterkull" wrote:
I'm porting an application from asp to asp.net2.0 and thought this would be
a good time to test masterpages and themes.

The end result is fine but I find it difficult to recreate forms in
designmode since the pages gets very cluttered (controls on top of each
other, stylesheet from theme not applied). The forms use both layers with
absolute positioning and styles (from stylesheet in themes).

Does everybody have the same problems with themes/masterpages in designmode
or have I done something wrong with my pages?
Theme is applied by web.config.

Thanks

Feb 27 '06 #2

P: n/a
There are a few issues with CSS in general, but I'm not sure any of them are
new. I think what you want to do is use pageStylesheetTheme attribute in the
page tag of web.config. It will apply the theme to the master page as well
as content pages at design time.

Feb 27 '06 #3

P: n/a
Thanks Larry,
I should never have doubted the powers of VS!
<pages theme="Default" styleSheetTheme="Default"/> worked fine in design time!
"Larry Charlton" wrote:
There are a few issues with CSS in general, but I'm not sure any of them are
new. I think what you want to do is use pageStylesheetTheme attribute in the
page tag of web.config. It will apply the theme to the master page as well
as content pages at design time.

Feb 28 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.