Description
The fixed layout has a fixed navbar, navigation menu and footer only content section is scrollable to user. In this page you can experience it. Fixed layout provide seamless UI on different screens.
CSS Classes
This table contains all classes related to the fixed layout. This is a custom layout classes for fixed layout page requirements.
All these options can be set via following classes:
Classes | Description |
---|---|
.fixed-top |
To set navbar fixed you need to add .fixed-top class in navbar <nav> tag. Refer HTML markup line no 7. |
.menu-fixed |
To set the main navigation fixed on page .menu-fixed class needs to add in navigation wrapper. Refer HTML markup line no 12. |
.footer-fixed |
To set the main footer fixed on page .footer-fixed class needs to add in footer wrapper. Refer HTML markup line no 37. |
This section contains HTML Markup to create fixed layout. This markup define where to add css classes to make navbar, navigation & footer fixed.
- Line no 7: Contain the
.fixed-top
class for adjusting navbar fixed on top. - Line no 12: Contain the
.menu-fixed
class for adjusting main navigation on left side. - Line no 37: Contain the
.footer-fixed
class for adjusting fixed 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-column 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 class="content-wrapper">
<!-- content header-->
<div class="content-header row">
...
</div>
<!-- content header-->
<!-- content right-->
<div class="content-right">
...
</div>
<!-- content right-->
</div>
</div>
<!-- END Content-->
<!-- START FOOTER DARK-->
<footer class="footer footer-dark footer-fixed">
...
</footer>
<!-- START FOOTER DARK-->
</body>
</html>