In a web I am using content pages, master pages and user controls. Kindly guide me what are best practices to write css for all of these. Should in page ? In seprate file. A seprate file for each (content, master and user control) ? or one seprate file for all ?
What is the way to write in professional environments considering easy changes and extendability.
I am writing nesting CSS code.
Thanks
Don’t be dogmatic about stuff like this. As a rule of thumb put your styles that are used throughout your site in a separate stylesheet.
If you have a one-off style that only applies to one page or control, don’t feel bad about just sticking it on the page itself. The more you do this though, the harder it is to modify the look of your whole site. There are trade-offs.