Bootstrap 5 Offcanvas
Bootstrap 5 Offcanvas
Bootstrap 5 Offcanvas is similar to modals but it is used as a sidebar navigation menu.
Further Explanation:-
- The .offcanvas class creates the offcanvas sidebar.
- The .offcanvas-start class positions the offcanvas, and makes it 400px wide.
- The .offcanvas-title class ensures proper margins and line-height. Then, add your content inside the .offcanvas-body class.
- To open the offcanvas sidebar, you must use a < button > or an < a > element that points to the id of the .offcanvas container.
- To open the offcanvas sidebar with an < a > element, you can point to #canvas_1 with the href attribute, instead of data-bs-target attribute.
Code Explanation
All Tutorials related to Bootstrap Tutorials
Bootstrap 5 Introduction
Bootstrap 5 CDN
Bootstrap 5 Colors
Bootstrap 5 Containers
Bootstrap 5 Typography
Bootstrap 5 Tables
Bootstrap 5 Figures
Bootstrap 5 Images
Bootstrap 5 Accordion
Bootstrap 5 Alerts
Bootstrap 5 Badges
Bootstrap 5 Breadcrumb
Bootstrap 5 Buttons
Bootstrap 5 Button Groups
Bootstrap 5 Cards
Bootstrap 5 Carousel
Bootstrap 5 Collapse
Bootstrap 5 Dropdown
Bootstrap 5 List Group
Bootstrap 5 Modal
Bootstrap 5 Navs
Bootstrap 5 Tabs
Bootstrap 5 Navbar
Bootstrap 5 Offcanvas
Bootstrap 5 Pagination
Bootstrap 5 Popovers
Bootstrap 5 Progress Bar
Bootstrap 5 Scrollspy
Bootstrap 5 Spinners
Bootstrap 5 Toasts
Bootstrap 5 Tooltip
Bootstrap 5 Text Truncation
Bootstrap 5 Links
Bootstrap 5 Background
Bootstrap 5 Shadows
Bootstrap 5 Text Align
Bootstrap 5 Overflow
Bootstrap 5 Form Control
Bootstrap 5 Select
Bootstrap 5 Checkbox & Radio
Bootstrap 5 Range
Bootstrap 5 Input Group
Bootstrap 5 Floating Labels