Description
2 Columns layout is the most common and popular layout, it has a navigation with content section. This layout use the common navbar and footer sections, however you can add customized header or footer on page level.
CSS Classes
This table contains all classes related to the 2 columns layout. This is a custom layout classes for 2 columns layout page requirements.
All these options can be set via following classes:
Classes | Description |
---|---|
.2-columns |
You can create 2 columns layout by adding .2-columns class in <body> tag. |
This section contains HTML Markup to create 2 columns layout. You need to add the .2-columns
class in the <body>
tag as show in below markup on line no 4. This layout has a navigation and content sections with common header & footer.
Stack has a ready to use starter kit, you can use this layout directly by using the starter kit pages from the stack-admin/starter-kit
folder.
<!DOCTYPE html>
<html lang="en">
<head></head>
<body data-menu="vertical-menu" class="vertical-layout vertical-menu 2-columns menu-expanded">
<!-- fixed-top-->
<nav role="navigation" class="header-navbar navbar-expand-sm 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 app-content">
</div>
<!-- END Content-->
<!-- START FOOTER DARK-->
<footer class="footer footer-dark">
</footer>
<!-- START FOOTER DARK-->
</body>
</html>