| layout | page |
|---|---|
| title | Layout |
The starter page is a good place to start building your app if you'd like to start from scratch. {: .quote-info .mt-0}
The layout consists of four major parts:
- Wrapper
.wrapper. A div that wraps the whole site. - Main Header
.main-header. Contains the logo and navbar. - Sidebar
.sidebar-wrapper. Contains the user panel and sidebar menu. - Content
.content-wrapper. Contains the page header and content.
{: .mt-4}
You cannot use both layout-boxed and layout-navbar-fixed or layout-footer-fixed at the same time. Anything else can be mixed together. {: .quote-danger}
AdminLTE 3.0 provides a set of options to apply to your main layout. Each one of these classes can be added to the body tag to get the desired goal.
- Fixed Sidebar: use the class
.layout-fixedto get a fixed sidebar. - Fixed Navbar: use the class
.layout-navbar-fixedto get a fixed navbar. - Fixed Footer: use the class
.layout-footer-fixedto get a fixed footer. - Collapsed Sidebar: use the class
.sidebar-collapseto have a collapsed sidebar upon loading. - Boxed Layout: use the class
.layout-boxedto get a boxed layout that stretches only to 1250px. - Top Navigation: use the class
.layout-top-navto remove the sidebar and have your links at the top navbar.
You can also use the following classes for responsive changes with placing
- Fixed Navbar:
- use the class
.layout-*-navbar-fixedto get a fixed navbar. - use the class
.layout-*-navbar-not-fixedto get a not fixed navbar.
- use the class
- Fixed Footer:
- use the class
.layout-*-footer-fixedto get a fixed footer. - use the class
.layout-*-footer-not-fixedto get a not fixed footer.
- use the class
< 606C div class="markdown-heading" dir="auto">Tip!