user controls - ASP.Net Themes, UserControls and CSS -


I am creating a web application with 30 pages, 12 user controls and 3 masterpages.
I have centralized all CSS in a theme called default application will expand in the near future.

What is the best practice to isolate CSS files?
I want:

A - Put everything B - separate each UserControl styles in a new CSS file (all in each page Styles)
C - Similar to B, but user control css files not stored in theme (manual css loading in CSC).
D - .......?

I recommend separating my style into different types of elements. One style sheet for fonts is another for the more complex diva behavior for presentation / layout, after which there are individual style sheets for expansion cases.

Then you can create a global style sheet that imports the default All controls, and the master page can set special cases beyond that, although I do not advise to be separated by UserControl. Now you have a very limited set. I run a site with about 200 user controls and 200 style sheets runs the bat.


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -