Im doing a web project in Blazor WebAssembly and i want to add a specific CSS file to one of my .razor files but i have no idea on earth how to do it.
Any one who knows how i add a CSS for ListProducts.razor ?
Im doing a web project in Blazor WebAssembly and i want to add a specific CSS file to one of my .razor files but i have no idea on earth how to do it.
Any one who knows how i add a CSS for ListProducts.razor ?
If you want css file to be specific to one razor file then create css file in same directory with {razor_file_name}.razor.css.
For you case ListProducts.razor.css
info: Microsoft docs
You should already have a premade app.css file located in wwwroot/css/app.css
Add the CSS for your entire app there