Tech Tutorials Database
GeekArticles Microsoft Microsoft.NET
 

Use CSS isolation in ASP.NET Core MVC, Razor Pages, and Blazor

 
Author: dotnetbips.com
Category: Microsoft.NET
Comments (0)

ASP.NET Core developers often store styling information for MVC views, Razor Pages, and Razor Components into a style sheet file. The style sheet is then applied to various pages using <link> HTML element. Although this works great in many cases, at times you might want to isolate view / page / component specific styling information into its own CSS file. Luckily, MVC views, Razor Pages, and Razor Components support such CSS isolation. This article explains how.

Read More...




Sponsored Links




Read Next: Setup Blazor app using ASP.NET Core Empty project template (Part 1)



 

 

Comments