layout: page
Tip!
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
. A div that wraps the whole site..main-header
. Contains the logo and navbar..main-sidebar
. Contains the sidebar user panel, search form and menu..content-wrapper
. Contains the page header and content.{: .mt-4}
Note!
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.2 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.
.layout-fixed
to get a fixed sidebar..layout-navbar-fixed
to get a fixed navbar..layout-footer-fixed
to get a fixed footer..sidebar-collapse
to have a collapsed sidebar upon loading..layout-boxed
to get a boxed layout that stretches only to 1250px..layout-top-nav
to remove the sidebar and have your links at the top navbar.You can also use the following classes for responsive changes with placing
.layout-*-navbar-fixed
to get a fixed navbar..layout-*-navbar-not-fixed
to get a not fixed navbar..layout-*-footer-fixed
to get a fixed footer..layout-*-footer-not-fixed
to get a not fixed footer.Tip!
If you want to use anchors with a fixed navbar, you need to add
.anchor
to you hidden anchor, e.g.<a id="testAnchor" class="anchor"></a>
.To get a smooth scrolling to the anchor you need to add
.scroll-smooth
to your HTML tag like this<html class="scroll-smooth">
otherwise it jumps directly to your anchor,.scroll-smooth
can cause issues with a Chrome extension called ScrollAnywhere. {: .quote-info}
Preloader to avoid https://github.com/ColorlibHQ/AdminLTE/discussions/3319
<div class="wrapper">
<!-- Preloader -->
<div class="preloader">
<img src="dist/img/AdminLTELogo.png" alt="AdminLTELogo" height="60" width="60">
</div>
</div>
.wrapper
element..preloader
element.AdminLTE 3.2 provides a dark mode option. You can add in body tag:
.dark-mode
AdminLTE 3.2 provides a set of color variations to apply to your sidebar (light & dark) & navbar. You can combine any available color with these class prefixes:
.navbar-*
.sidebar-dark-*
.sidebar-light-*
.accent-*
New
You can use override the link/accent color in AdminLTE, you can add
.accent-*
tobody
. {: .quote-info}Info
You can combine
.navbar-*
with.navbar-light
or.navbar-dark
. {: .quote-info}Recommended for Dark Mode
You must use only
.navbar-dark
without only combination. {: .quote-info}
The following colors are available:
{: .mt-4}
{: .mt-4}
Tip!
You can use these color variations even with
.text-*
,.bg-*
& much more. {: .quote-info}
For custom colored custom-checkbox & custom-radio you can add this classes:
.custom-control-input-*
You can also change the look to outlined checkbox & radio with adding the .custom-control-input-outline
on the custom control input.
For custom colored custom-range you can add this classes:
.custom-range-*
For custom colored custom-range you can add this classes:
.custom-range-*
For custom colored custom-switch you can add this classes:
.custom-switch-off-*
(for custom switch off).custom-switch-on-*
(for custom switch on)You can also use bg-*
beside the .toast
to get a nice colored toast.
You can use the all the colors above with these plugins:
.slider-*
(wrapped around the slider).icheck-*