MS Stp MS Stp - 10 months ago 109
CSS Question

Regions in CSS like C# regions?

Is there a way to define regions in CSS file just like regions in C#?

Like in C# you define regions as follows

#region My Region
//your code here

My problem is I don't want to use separate CSS files for my project but I also want to organinze so I can define specific sections like one for Master Page CSS and one for FormUser and so forth so it is easy to troubleshoot when needed. Is it possible?


Without Judging whether or not this is the right way to do it... this is the answer to your question. You can use this for well to make collapsible regions

/*#region RegionName*/

/*#endregion RegionName*/