-
Book Overview & Buying
-
Table Of Contents
Bootstrap for ASP.NET MVC - Second Edition
By :
You've added the CSS and JavaScript files needed to create the master layout file for your project. Next, you need to create a home controller as well as a master layout file. To do this, complete the following steps:
Add a new empty controller called HomeController to the Controllers folder by right-clicking on it and selecting Add | New Item....
Select MVC Controllers Class from the list of project items and click on the Add button.
Next, right-click on the Views folder in your project and navigate to Add | New Folder. Name the folder Shared.
Right-click on the newly created Shared folder and navigate to Add | New Item...
Select MVC View Layout Page in the list of project items and keep the name of the file as _Layout.cshtml and click on Add.
Open the index.html file in the Bootstrap 4 Admin Dashboard template source files and copy its contents to the _Layout.cshtml file.
Change the <head> tag to reference the styles.css folder in the correct folder, as illustrated...
Change the font size
Change margin width
Change background colour