


Next, add additional elements for each column, and specify the number of columns that should occupy (out of 12) as part of a CSS class starting with “col-md-”. The collapsed navbar, with “hamburger” button in the top right, appears when the window drops below a certain width:Ĭlicking the icon reveals the menu items in a vertical drawer that slides down from the top of the page: You can see how the built-in About page appears using this template: In the simple default _Layout file shown here, the contents of the page are rendered by the specific View associated with the page, and then a simple is added to the end of the element. Additional links for Register and Login are added by the _LoginPartial line on line 29.īelow the navigation, the main body of each page is rendered in another, marked with the “container” and “body-content” classes. The main navigation menu is rendered by the element within the second div, and includes links to Home, About, and Contact. It also includes the application name, which appears in the top left. © 2016 - WebApplication1 required: false) WebApplication1 Toggle navigation WebApplication1 Home About Contact Html.PartialAsync("_LoginPartial")
