Customizing an ASP.NET Core MVC Website
Explore how to extend an ASP.NET Core MVC website by adding custom CSS for product display, integrating category images, and using Razor syntax for dynamic content. Understand defining typed views to improve coding with IntelliSense and learn to combine HTML with C# code to build interactive pages.
Now that we’ve reviewed the structure of a basic MVC website, we will customize and extend it. We have already registered an EF Core model for the Northwind database, so the next task is to output some of that data on the home page.
Defining a custom style
The home page will show a list of the
Step 1: In the wwwroot\css folder, open the site.css file.
Step 2: At the bottom of the file, add a new style that will apply to an element with the product-columns ...