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 is required to process package imports. If you need a different preprocessor remove all packages first.

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

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

              
                <html>

<head>
</head>

<body>

  <div class="header">
    HEADER
  </div>


  <div class="sidebar column">

    <div class="sticky-wrapper sticky">

      <div class="menu-block">
        <div class="button"><h1>sticky menu</h1></div>
      </div>

      <div class="scrolling-menu">

        <div class="padding-wrapper">

          <div class="scrollable">

            <h1>scrolling menu</h1>

            <h2>Menu List</h2>
            <ul>
              <li>Menu item</l1>
              <li>Another menu item</li>
              <li>Also a menu item</li>
              <li>Yet another menu item</li>
              <li>Unimportant menu item</li>
              <li>Menu item</l1>
              <li>Another menu item</li>
              <li>Also a menu item</li>
              <li>Yet another menu item</li>
              <li>Unimportant menu item</li>
              <li>Menu item</l1>
            </ul>

            <h2>Menu List</h2>
            <ul>
              <li>Menu item</l1>
              <li>Another menu item</li>
              <li>Also a menu item</li>
              <li>Yet another menu item</li>
              <li>Unimportant menu item</li>
              <li>Another menu item</li>
              <li>Also a menu item</li>
              <li>Yet another menu item</li>
              <li>Unimportant menu item</li>
            </ul>

            <h2>Menu List</h2>
            <ul>
              <li>Menu item</l1>
              <li>Another menu item</li>
              <li>Also a menu item</li>
              <li>Yet another menu item</li>
              <li>Unimportant menu item</li>
              <li>Menu item</l1>
              <li>Another menu item</li>
              <li>Also a menu item</li>
              <li>Yet another menu item</li>
              <li>Unimportant menu item</li>
            </ul>

            <h2>Menu List</h2>
            <ul>
              <li>Menu item</l1>
              <li>Another menu item</li>
              <li>Another menu item</li>
              <li>Also a menu item</li>
              <li>Yet another menu item</li>
              <li>Unimportant menu item</li>
            </ul>

          </div>

        </div>

      </div>

    </div>

  </div>


  <div class="body column">

    <div class="padding-wrapper">
      
      <h1>body</h1>

      <p>Flatland vastness is bearable only through love at the edge of forever consciousness intelligent beings stirred by starlight. Concept of the number one citizens of distant epochs emerged into consciousness a very small stage in a vast cosmic arena prime number gathered by gravity. Made in the interiors of collapsing stars permanence of the stars great turbulent clouds network of wormholes courage of our questions great turbulent clouds?</p>

      <p>Prime number explorations tesseract kindling the energy hidden in matter hydrogen atoms Euclid. Descended from astronomers network of wormholes the ash of stellar alchemy invent the universe two ghostly white figures in coveralls and helmets are softly dancing star stuff harvesting star light. Across the centuries cosmic fugue made in the interiors of collapsing stars across the centuries network of wormholes a mote of dust suspended in a sunbeam?</p>

      <p>Two ghostly white figures in coveralls and helmets are softly dancing Euclid rogue dispassionate extraterrestrial observer a still more glorious dawn awaits consciousness. Rich in mystery rings of Uranus shores of the cosmic ocean extraordinary claims require extraordinary evidence network of wormholes encyclopaedia galactica. Made in the interiors of collapsing stars the sky calls to us a very small stage in a vast cosmic arena vastness is bearable only through love inconspicuous motes of rock and gas shores of the cosmic ocean.</p>

      <p>The only home we've ever known radio telescope Apollonius of Perga two ghostly white figures in coveralls and helmets are softly dancing trillion a mote of dust suspended in a sunbeam. Two ghostly white figures in coveralls and helmets are softly dancing from which we spring take root and flourish courage of our questions Sea of Tranquility star stuff harvesting star light. Courage of our questions Orion's sword realm of the galaxies are creatures of the cosmos finite but unbounded at the edge of forever.</p>

      <p>Extraordinary claims require extraordinary evidence Apollonius of Perga stirred by starlight are creatures of the cosmos Sea of Tranquility radio telescope. Made in the interiors of collapsing stars shores of the cosmic ocean a still more glorious dawn awaits a very small stage in a vast cosmic arena star stuff harvesting star light invent the universe. Hearts of the stars permanence of the stars something incredible is waiting to be known vanquish the impossible inconspicuous motes of rock and gas vastness is bearable only through love and billions upon billions</p>

      <p>Flatland vastness is bearable only through love at the edge of forever consciousness intelligent beings stirred by starlight. Concept of the number one citizens of distant epochs emerged into consciousness a very small stage in a vast cosmic arena prime number gathered by gravity. Made in the interiors of collapsing stars permanence of the stars great turbulent clouds network of wormholes courage of our questions great turbulent clouds?</p>

      <p>Prime number explorations tesseract kindling the energy hidden in matter hydrogen atoms Euclid. Descended from astronomers network of wormholes the ash of stellar alchemy invent the universe two ghostly white figures in coveralls and helmets are softly dancing star stuff harvesting star light. Across the centuries cosmic fugue made in the interiors of collapsing stars across the centuries network of wormholes a mote of dust suspended in a sunbeam?</p>

      <p>Two ghostly white figures in coveralls and helmets are softly dancing Euclid rogue dispassionate extraterrestrial observer a still more glorious dawn awaits consciousness. Rich in mystery rings of Uranus shores of the cosmic ocean extraordinary claims require extraordinary evidence network of wormholes encyclopaedia galactica. Made in the interiors of collapsing stars the sky calls to us a very small stage in a vast cosmic arena vastness is bearable only through love inconspicuous motes of rock and gas shores of the cosmic ocean.</p>

      <p>The only home we've ever known radio telescope Apollonius of Perga two ghostly white figures in coveralls and helmets are softly dancing trillion a mote of dust suspended in a sunbeam. Two ghostly white figures in coveralls and helmets are softly dancing from which we spring take root and flourish courage of our questions Sea of Tranquility star stuff harvesting star light. Courage of our questions Orion's sword realm of the galaxies are creatures of the cosmos finite but unbounded at the edge of forever.</p>

      <p>Extraordinary claims require extraordinary evidence Apollonius of Perga stirred by starlight are creatures of the cosmos Sea of Tranquility radio telescope. Made in the interiors of collapsing stars shores of the cosmic ocean a still more glorious dawn awaits a very small stage in a vast cosmic arena star stuff harvesting star light invent the universe. Hearts of the stars permanence of the stars something incredible is waiting to be known vanquish the impossible inconspicuous motes of rock and gas vastness is bearable only through love and billions upon billions</p>

  </div>


<style type="text/css">

  body {
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: "Source Sans Pro", Calibri, Candara, Arial, sans-serif;

    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
  }

  .column {
    display: flex;
    flex-direction: column;
    flex-basis: 100%;
    flex: 1;
  }

  .header {
    width: 100%;
    height: 70px;
    background: #053482;
    color: #fff;
    text-align: center;
    padding-top: 30px;
    border-bottom: 3px solid #032152;
    font-size: 2em;
    font-weight: bold;
  }

  .sidebar {
    background: #c3c3c3;
    text-align: center;
    border-right: 3px solid #999;
    position: relative;
  }

  .button {
    margin: 0 20px 0 20px;
    display: block;
    background: #999;
    padding: 10px;
  }

  .menu-block {
    height: 100px;
    padding-top: 50px;
    background: #c3c3c3;
    color: #fff;
  }

  .sticky {
    position: sticky;
    top: 0;
  }

  .scrolling-menu {
    background: #fff;
  }

  .scrollable {
    height: calc(100vh - 200px);
    overflow-y: auto;
    overflow-x: hidden;
    background: #fff;
    text-align: left;
  }

  .body {
    background: #fff;
    position: relative;
    width: 100%;
    flex: 0 0 66% !important;
  }

  .padding-wrapper {
    padding: 30px;
  }

  h1 {
    text-transform: uppercase;
    margin: 0;
    padding: 0;
  }

  p {
    font-size: 1.2rem;
    line-height: 1.4;
  }

</style>

</body>




</html>

              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console