Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <header id="header">
    <div class="container-fluid">
        <div class="row">
            <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
                <div class="img-thumbnail">
                    <img src="holder.js/48x48" />
                </div>
                &nbsp;&nbsp;Administration
            </div>
        </div>
    </div>
</header>

<nav id="column-left">
<div id="profile">
    <ul class="media-list">
        <li class="media">
            <div class="media-left">
            <a href="#">
                <img class="media-object img-circle" src="holder.js/64x64" alt="...">
            </a>
        </div>
        <div class="media-body">
            <h4 class="media-heading">John Doe</h4>
            <p>Administrator</p>
        </li>
    </ul>
</div>
<ul id="menu">

<li><a href=""><i class="fa fa-dashboard fa-fw"></i> <span>Dashboard</span></a></li>

<li>
    <a class="parent"><i class="fa fa-cog fa-fw"></i> <span>Drop Down Menu</span></a>
    <ul>
        <li><a href="">Link 1</a></li>
        <li><a class="parent">Sub Drop Down Menu</a>
            <ul>
                <li><a href="">Link 2</a></li>
                <li><a href="">Link 3</a></li>
            </ul>
        </li>
    </ul>
</li>

</ul>    
</nav>

<div id="content">
  
<div class="main-content">
  
<nav class="navbar navbar-default navbar-shadow navbar-fixed-top">
    <div class="container-fluid">
        <div class="navbar-header">
        <button aria-controls="navbar" aria-expanded="false" data-target="#navbar" data-toggle="collapse" class="navbar-toggle collapsed" type="button">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
        </button>
        <a type="button" id="button-menu" class="navbar-brand"><i class="fa fa-indent fa-lg"></i></a>
        </div>

        <div class="navbar-collapse collapse" id="navbar">
            <ul class="nav navbar-nav">
            </ul>
            <ul class="nav navbar-nav navbar-right">
            <li class="dropdown">
                <a aria-expanded="false" aria-haspopup="true" role="button" data-toggle="dropdown" class="dropdown-toggle" href="#"><i class="fa fa-bell fa-lg"></i> <span class="caret"></span></a>
                <ul class="dropdown-menu">
                    <li><a href="#">Action</a></li>
                    <li><a href="#">Another action</a></li>
                    <li><a href="#">Something else here</a></li>
                    <li class="divider" role="separator"></li>
                    <li class="dropdown-header">Nav header</li>
                    <li><a href="#">Separated link</a></li>
                    <li><a href="#">One more separated link</a></li>
                </ul>
            </li>
            <li class="dropdown">
                <a aria-expanded="false" aria-haspopup="true" role="button" data-toggle="dropdown" class="dropdown-toggle" href="#"><i class="fa fa-info-circle"></i> <span class="caret"></span></a>
                <ul class="dropdown-menu">
                    <li><a href="#">Action</a></li>
                    <li><a href="#">Another action</a></li>
                    <li><a href="#">Something else here</a></li>
                    <li class="divider" role="separator"></li>
                    <li class="dropdown-header">Nav header</li>
                    <li><a href="#">Separated link</a></li>
                    <li><a href="#">One more separated link</a></li>
                </ul>
            </li>
              <li class="active"><a href="./">Logout <i class="fa fa-sign-out fa-lg"></i></a></li>
            </ul>
        </div>
    </div>
</nav>
  
<div class="container-fluid">
<div class="row">
  <div class="col-lg-6 col-md-6">
    <div class="panel panel-default">
      <div class="panel-heading">
        <h1 class="panel-title">Calender</h1>
      </div>
      <div class="panel-body">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin suscipit dui non nunc sagittis dignissim. Duis a feugiat nulla. Morbi luctus odio eu justo rhoncus commodo. Integer tortor augue, pellentesque sit amet orci id, vulputate dapibus diam. Nulla lobortis porta tellus id vulputate. Praesent egestas quam vel porta lobortis. Integer felis quam, tincidunt quis leo eget, luctus sollicitudin mauris. Phasellus hendrerit suscipit augue et ultricies. Fusce id ornare dui. Vestibulum sed accumsan odio. Aliquam a ante diam. Praesent nec quam velit. Proin porta quam odio, nec placerat arcu ultricies quis. Pellentesque at elementum libero, consectetur placerat lacus.

Proin sit amet leo ligula. Donec rhoncus tellus nulla, non viverra nibh fringilla vitae. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Quisque metus urna, fringilla ut hendrerit ac, maximus eu massa. Ut mattis sodales velit eu bibendum. Fusce sapien erat, molestie sed tortor sed, tempor commodo eros. Morbi molestie placerat libero eu facilisis. Sed auctor turpis nec egestas tristique. Praesent ac suscipit lorem. Suspendisse ut tempus lorem. Etiam vestibulum dui at venenatis dictum. Sed blandit arcu non felis convallis, a facilisis nibh finibus. Pellentesque risus magna, ultricies nec eros sed, imperdiet aliquet diam.

Sed sed dolor pharetra neque luctus viverra ac in ex. Duis faucibus interdum semper. Etiam feugiat vitae felis vitae congue. Morbi commodo elit a convallis placerat. In hac habitasse platea dictumst. Praesent a nisi leo. Sed eget eros ut elit imperdiet faucibus. Sed porttitor pulvinar nunc. In vel lectus non massa commodo maximus aliquet et lorem. Integer viverra vel tortor et gravida. Mauris porttitor aliquam lectus a efficitur. Pellentesque nulla leo, ultrices ut lacus ut, convallis sollicitudin augue. Phasellus interdum elit odio, ullamcorper vulputate nulla hendrerit eu. Fusce augue ante, tincidunt sed libero et, euismod lobortis nunc. Maecenas blandit velit id interdum suscipit.

Vivamus quis pellentesque ante. Vivamus diam quam, placerat sit amet lacinia a, aliquam nec est. Fusce maximus tellus quis metus aliquet, quis euismod risus ultrices. Duis gravida velit a leo auctor luctus. Maecenas ac felis magna. Maecenas ullamcorper, justo vitae rutrum tincidunt, massa augue euismod lectus, eget ultricies felis nibh et lacus. Nullam suscipit, est a vulputate vulputate, risus urna interdum felis, quis laoreet lorem est in felis. Quisque at pulvinar mauris. Pellentesque fermentum dignissim rhoncus. Donec sed massa vehicula, congue erat dictum, porta lorem. Phasellus sit amet nunc ante. Suspendisse potenti.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent ultricies dui et dapibus tincidunt. Ut vitae nulla id odio auctor interdum sed sit amet dolor. Etiam sollicitudin ante eu lorem finibus, at accumsan massa vestibulum. Cras hendrerit ante vel molestie consequat. In venenatis nunc et turpis finibus finibus. Integer mollis mi metus, id condimentum purus cursus non. Mauris pretium magna eu risus tristique, ut cursus felis aliquet. Nulla consequat, sem at dictum faucibus, eros justo condimentum nisi, suscipit ultricies enim magna vitae purus. Duis pulvinar turpis sed placerat faucibus. 
      </div>
    </div>
  </div>
</div>
</div>
  
</div><!-- . main-content -->  
  
</div><!-- # Content -->

<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/holder/2.9.0/holder.min.js"></script>

<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
              
            
!

CSS

              
                @import url(//fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800&subset=latin,cyrillic-ext,greek-ext,vietnamese);

body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    overflow-x: hidden;
    background-color: #eee;
}

a,
a:hover,
a:focus {
    cursor: pointer;
    text-decoration: none;
}

tr:hover a.dashboard-user:after {
    font-family: FontAwesome;
    content: "\f044";
    font-size: 14px;
}

/* fix for bootstrap hidden and visible */
span.hidden-xs,
span.hidden-sm,
span.hidden-md,
span.hidden-lg {
    display: inline;
}

#content {
    padding-bottom: 40px;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
}

#column-left {
    width: 50px;
    min-height: 100%;
    background-color: #242424;
    position: fixed;
    clear: both;
    padding-top: 20px;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
}


#column-left + #content {
    margin-left: 50px;
}

#column-left + #content + #footer {
    margin-left: 50px;
}

@media (max-width: 767px) {
    #column-left {
        overflow: hidden;
        display: none;
    }
    
    #column-left + #content {
        margin-left: 0;
    }

    #column-left + #content + #footer {
        margin-left: 0;
    }
}


/* Column Left Active */

#column-left.active {
    width: 245px;
    display: block;
}

@media (min-width: 768px) {
    #column-left.active {
        overflow: auto;
    }

    #column-left.active + #content {
        margin-left: 245px;
    }

    #column-left.active + #content + #footer {
        margin-left: 245px;
    }
}

@media (max-width: 767px) {
    #column-left.active + #content {
        position: relative;
        left: 245px;
    }

    #column-left.active + #content + #footer {
        position: relative;
        left: 245px;
    }
}

#column-left.active {
    width: 245px;
}

#column-left.active #menu li i {
    font-size: 20px;
}

#column-left.active #menu > li > a > span {
    display: inline;
}

#column-left.active #menu > li > ul {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    visibility: visible;
}

#header {
    min-height: 50px;
    background: #FFFFFF;
    border-bottom: 1px solid #E5E5E5;
    margin: 0;
    padding-top: 5px;
    padding-bottom: 5px;
    border-radius: 0;
    position: relative;
}

.navbar {
    background-color: #fff !important;
    border: 0 none;
    border-radius: 0;
    color: #666;
    margin-bottom: 20px;
}

.navbar.navbar-shadow {
    box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.08), 0 2px 0 0 rgba(0, 0, 0, 0.02);
}

#button-menu {
    display: inline-block;
    cursor: pointer;
    color: #6D6D6D;
}

@media (max-width: 640px) {
    .navbar-brand {
        padding: 15px 7px;
    }
}

#profile {
    display: none;
}

#column-left.active #profile {
    display: block;
    padding: 10px 15px 10px 15px;
    overflow: auto;
    border-bottom: 1px solid #585858;
    color: #C4C4C4;
}

#menu,
#menu ul,
#menu li {
    padding: 0;
    margin: 0;
    min-height: 100%;
    list-style: none;
}

#menu {
    margin-bottom: 25px;
}

#menu > li {
    position: relative;
}

#menu li a {
    text-decoration: none;
    display: block;
    padding: 10px;
    cursor: pointer;
    color: #aaaaaa;
    border-bottom: 1px solid #2d2d2d;
}

#menu li a i {
    color: rgba(170, 170, 170, 0.7);
    font-size: 16px;
}

#menu > li > a {
    color: #aaaaaa;
    font-size: 14px;
    padding-left: 13px;
}

#menu > li > a:hover {
    background-color: #444444;
}

#menu > li > a > span {
    display: none;
    margin-left: 8px;
}

#menu li li a {
    border-bottom: 1px solid #2d2d2d;
}

#menu li li a:hover {
    color: #aaaaaa;
    background-color: #1e1e1e;
}

#menu li li a:before {
    content: "\f101";
    font-size: 14px;
    font-family: FontAwesome;
    margin-left: 10px;
    margin-right: 10px;
    transition: margin ease 0.5s;   
}


#menu li li a:hover:before {
    margin-right: 20px;
}

#menu > li.active > a {
    color: #aaaaaa;
    background: #242424;
}

#menu li.active li a {
    color: #aaaaaa;
}

#menu li li.active > a:last-child {
    color: #aaaaaa;
}

#menu li li.active a:last-child:before {
    margin-left: 20px;
    margin-right: 10px;
}

#menu > li > ul {
    position: absolute;
    left: 50px;
    top: 0px;
    width: 210px;
    background-color: #313131;
    visibility: hidden;
}

#menu li ul {
    overflow: hidden;
}

#menu li li a.parent:after,
#column-left.active #menu > li a.parent:after {
    font-family: FontAwesome;
    content: "\f105";
    float: right;
    margin-right: 8px;
}

#menu li li.open > a.parent:after,
#column-left.active #menu > li.open > a.parent:after {
    font-family: FontAwesome;
    content: "\f107";
    float: right;
    margin-right: 8px;
}

#menu li ul a {
    padding-left: 20px;
}

#menu li li ul a {
    padding-left: 40px;
}

#menu li li li ul a {
    padding-left: 60px;
}

#menu li li li li ul a {
    padding-left: 60px;
}

#menu li li li a.parent:after,
#column-left.active #menu > li a.parent:after {
    font-family: FontAwesome;
    content: "\f105";
    float: right;
    margin-right: 8px;
}

#menu li li li.open > a.parent:after,
#column-left.active #menu > li.open > a.parent:after {
    font-family: FontAwesome;
    content: "\f107";
    float: right;
    margin-right: 8px;
}

#menu li ul li a.parent:after,
#column-left.active #menu > li ul li a.parent:after {
    font-family: FontAwesome;
    content: "\f105";
    float: right;
    margin-right: 8px;
}

#menu li ul li.open > a.parent:after,
#column-left.active #menu > li ul li.open > a.parent:after {
    font-family: FontAwesome;
    content: "\f107";
    float: right;
    margin-right: 8px;
}

#content{
  position: relative;
  padding: 0;
}
#content .main-content{
  padding-top: 70px;
  max-height: calc(100vh - 70px);
  overflow: auto;
  padding-bottom: 40px /*move the 40px padding (and all bottom/top padding) of #content to .main_content instead */
}

#content .navbar-fixed-top{
  position: absolute;
}

              
            
!

JS

              
                $(document).ready(function() {

  // Set last page opened on the menu
  $('#menu a[href]').on('click', function() {
    sessionStorage.setItem('menu', $(this).attr('href'));
  });

  if (!sessionStorage.getItem('menu')) {
    $('#menu #dashboard').addClass('active');
  } else {
    // Sets active and open to selected page in the left column menu.
    $('#menu a[href=\'' + sessionStorage.getItem('menu') + '\']').parents('li').addClass('active open');
  }

  if (localStorage.getItem('column-left') == 'active') {
    $('#button-menu i').replaceWith('<i class="fa fa-dedent fa-lg"></i>');

    $('#column-left').addClass('active');

    // Slide Down Menu
    $('#menu li.active').has('ul').children('ul').addClass('collapse in');
    $('#menu li').not('.active').has('ul').children('ul').addClass('collapse');
  } else {
    $('#button-menu i').replaceWith('<i class="fa fa-indent fa-lg"></i>');

    $('#menu li li.active').has('ul').children('ul').addClass('collapse in');
    $('#menu li li').not('.active').has('ul').children('ul').addClass('collapse');

  }

  // Menu button
  $('#button-menu').on('click', function() {
    // Checks if the left column is active or not.
    if ($('#column-left').hasClass('active')) {
      localStorage.setItem('column-left', '');

      $('#button-menu i').replaceWith('<i class="fa fa-indent fa-lg"></i>');

      $('#column-left').removeClass('active');

      $('#menu > li > ul').removeClass('in collapse');
      $('#menu > li > ul').removeAttr('style');
    } else {
      localStorage.setItem('column-left', 'active');

      $('#button-menu i').replaceWith('<i class="fa fa-dedent fa-lg"></i>');

      $('#column-left').addClass('active');

      // Add the slide down to open menu items
      $('#menu li.open').has('ul').children('ul').addClass('collapse in');
      $('#menu li').not('.open').has('ul').children('ul').addClass('collapse');
    }
  });

  // Menu
  $('#menu').find('li').has('ul').children('a').on('click', function() {
    if ($('#column-left').hasClass('active')) {
      $(this).parent('li').toggleClass('open').children('ul').collapse('toggle');
      $(this).parent('li').siblings().removeClass('open').children('ul.in').collapse('hide');
    } else if (!$(this).parent().parent().is('#menu')) {
      $(this).parent('li').toggleClass('open').children('ul').collapse('toggle');
      $(this).parent('li').siblings().removeClass('open').children('ul.in').collapse('hide');
    }
  });

});
              
            
!
999px

Console