cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

Code Indentation


Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

              <button type="button" data-toggle="offcanvas" data-target="#sidebar-first" data-canvas="body"><i class="fa fa-chevron-right"></i></button>
<aside role="complementary" class="navmenu navmenu-default navmenu-fixed-left offcanvas" id="sidebar-first">
  <div class="complementary-content">

<div id="main-content">
  <h2><a href="http://www.jasny.net/bootstrap/" target="_blank">Jasny Bootstrap</a> Menus</h2>
  <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus feugiat pellentesque massa. Donec mollis fermentum eros ac consequat. Duis sem velit, congue in eros sed, vulputate semper tellus. Etiam efficitur massa lacus. In sed dui in augue efficitur
    posuere. Cras lacus ipsum, vestibulum non tortor eu, consectetur molestie odio. Etiam at laoreet lacus. Aliquam sagittis ullamcorper eros, vel viverra dolor scelerisque quis. Phasellus felis ante, dapibus id ullamcorper sit amet, bibendum in ipsum.
    Fusce vitae mauris libero. Ut laoreet ligula non metus suscipit pharetra. Curabitur convallis, diam non placerat facilisis, urna tortor facilisis diam, in pretium sem massa a nibh. Aliquam et massa elementum, lobortis ligula eu, tempus mi. Curabitur
    semper consequat lorem, ut posuere diam feugiat eget. Pellentesque pretium posuere tellus a elementum. Cras pellentesque, dolor quis posuere lacinia, arcu libero scelerisque leo, sit amet tempor turpis neque in neque.</p>

  <h5>Menu on which side</h5>
  <div class="radio">
    <input type="radio" name="whichSide" id="whichSideLeft" value="left" checked />
    Left (behavior is to "push" the page content)
  <div class="radio">
    <input type="radio" name="whichSide" id="whichSideRight" value="right" />
    Right (behavior is to "slide over" the page content)

<button type="button" data-toggle="offcanvas" data-target="#sidebar-second"><i class="fa fa-chevron-left"></i></button>
<aside role="complementary" class="navmenu navmenu-default navmenu-fixed-right offcanvas" id="sidebar-second">
  <div class="complementary-content">
              #main-content {
  padding-top: 10px;
  display: block;
  height: 100%;
  padding: 0px 30px;

button[data-target='#sidebar-first'],  button[data-target='#sidebar-second']{
  position: fixed;
  top: 10px;
  background-color: #fff;
button[data-target='#sidebar-first'] {
  left: 0px;
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
  border-left: none;

button[data-target='#sidebar-second'] {
  right: 0px;
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
  border-right: none;
              $(document).on('ready', function() {
  var right = 'button[data-target="#sidebar-second"]',
      left = 'button[data-target="#sidebar-first"]';
  function toggle(on, off) {
    return function() {
      $(on).css('display', 'inherit');
      $(off).css('display', 'none');
  $('#whichSideRight').on('change', toggle(right, left));
  $('#whichSideLeft').on('change', toggle(left, right));
  toggle(left, right)();
Loading ..................