Content Detached Left Sticky Sidebar

CSS Classes

This table contains all classes related to the content left sticky sidebar layout. This is a custom layout classes for content left sticky sidebar layout page requirements.

All these options can be set via following classes:

Classes Description
.content-left-sidebar You can create 3 column left layout by adding .content-left-sidebar class in <body> tag.
.content-right In this layout content should be float in right side, so .content-right class needs to add in content wrapper. Refer HTML markup line no 27.
.sidebar-left In this layout sidebar should be float in left side, so .sidebar-right class needs to add in sidebar wrapper. Refer HTML markup line no 33.
.sidebar-sticky To create sticky sidebar add .sidebar-sticky class. Refer HTML markup line no 34.

HTML Markup

This section contains HTML Markup to create 3 column left sticky sidebar layout. You need to add the .content-left-sidebar class in the <body> tag as show in below markup on line no 4. This layout has a navigation, content and left sidebar sections with common header & footer.

  • Line no 27: Contain the .content-right class for adjusting content section in right side.
  • Line no 33: Contain the .sidebar-left class for adjusting sidebar section in left side.
  • Line no 34: Contain the .sidebar-sticky class, that will make the left sidebar sticky.

Modern has a ready to use starter kit, you can use this layout directly by using the content-left-sticky-sidebar.html

        
            <!DOCTYPE html>
              <html lang="en">
                <head></head>
                <body data-menu="vertical-menu" class="vertical-layout vertical-menu content-left-sidebar menu-expanded">
                  
                  <!-- fixed-top-->
                  <nav role="navigation" class="header-navbar navbar navbar-with-menu fixed-top navbar-dark navbar-shadow navbar-border">
                      ...
                  </nav>
                  
                  <!-- BEGIN Navigation-->
                  <div class="main-menu menu-dark menu-fixed menu-shadow">
                      ...
                  </div>
                  <!-- END Navigation-->

                  <!-- BEGIN Content-->
                  <div class="content modern-content container-fluid">
                      <div class="content-wrapper">
                          <!-- content header-->
                          <div class="content-header row">
                              ...
                          </div>
                          <!-- content header-->
                          
                          <!-- content right-->
                          <div class="content-content-right">
                              ...
                          </div>
                          <!-- content right-->
                          
                          <!-- sidebar left-->
                          <div class="sidebar-sidebar-left">
                              <div class="sidebar sidebar-sticky">
                                  ...
                              </div>
                          </div>
                          <!-- sidebar left-->
                          
                      </div>
                  </div>
                  <!-- END Content-->


                  <!-- START FOOTER DARK-->
                  <footer class="footer footer-dark">
                      ...
                  </footer>
                  <!-- START FOOTER DARK-->

                </body>
              </html>