Search
 
SCRIPT & CODE EXAMPLE
 

HTML

Bootstrap Offcanvas

<a class="btn btn-primary" data-bs-toggle="offcanvas" href="#offcanvasExample" role="button" aria-controls="offcanvasExample">
  Link with href
</a>
<button class="btn btn-primary" type="button" data-bs-toggle="offcanvas" data-bs-target="#offcanvasExample" aria-controls="offcanvasExample">
  Button with data-bs-target
</button>

<div class="offcanvas offcanvas-start" tabindex="-1" id="offcanvasExample" aria-labelledby="offcanvasExampleLabel">
  <div class="offcanvas-header">
    <h5 class="offcanvas-title" id="offcanvasExampleLabel">Offcanvas</h5>
    <button type="button" class="btn-close" data-bs-dismiss="offcanvas" aria-label="Close"></button>
  </div>
  <div class="offcanvas-body">
    <div>
      Some text as placeholder. In real life you can have the elements you have chosen. Like, text, images, lists, etc.
    </div>
    <div class="dropdown mt-3">
      <button class="btn btn-secondary dropdown-toggle" type="button" id="dropdownMenuButton" data-bs-toggle="dropdown">
        Dropdown button
      </button>
      <ul class="dropdown-menu" aria-labelledby="dropdownMenuButton">
        <li><a class="dropdown-item" href="#">Action</a></li>
        <li><a class="dropdown-item" href="#">Another action</a></li>
        <li><a class="dropdown-item" href="#">Something else here</a></li>
      </ul>
    </div>
  </div>
</div>
Comment

bootstrap offcanvas

<button class="btn btn-primary" data-bs-toggle="offcanvas" data-bs-target="#mobile-nav">
    Link with href
</button>
<ul id="mobile-nav" class="offcanvas offcanvas-start">
</ul>
Comment

PREVIOUS NEXT
Code Example
Html :: random paragraph in html 
Html :: loader 
Html :: how to create modal popup in javascript 
Html :: how to make a sign up page in html 
Html :: html input time default value 
Html :: html input date range 
Html :: html anchor tag 
Html :: leave youtube comment with timestamp 
Html :: Embed Facebook feed into website 
Html :: how to write h1 tag in html 
Html :: ubuntu 17.04 vmware 
Html :: HTML JWB 
Html :: css stack classes 
Html :: html multi like tag indentation convention 
Html :: custom video player html5 books 
Html :: access wireshark through powershell ps1 
Html :: how to accept pasted image in html 
Html :: bootstrap 4 position relative div 
Html :: passing an amount to a donation radio button html code 
Html :: tailwind tag input 
Html :: li text html 
Html :: Save current page as HTML to server 
Html :: https://progate.com/images/html/beginner/school.jpg 
Html :: lpluguin de whatsapp para html 
Html :: how to create game in html 
Html :: /tag 
Html :: simple html template 
Html :: script file not working in internet explorer 
Html :: aria for icon links 
Html :: Using the id attribute 
ADD CONTENT
Topic
Content
Source link
Name
6+9 =