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

              
                <body>
  <nav>
    <ul><h1 id="title">Thing Documentation</h1>
      <li><a href="#thing1">Thing1</a></li>
      <li><a href="#thing2">Thing2</a></li>
      <li><a href="#thing3">Thing3</a></li>
      <li><a href="#thing4">Thing4</a></li>
      <li><a href="#thing5">Thing5</a></li>
      <li><a href="#thing6">Thing6</a></li>
      <li><a href="#thing7">Thing7</a></li>
      <li><a href="#thing8">Thing8</a></li>
      <li><a href="#thing9">Thing9</a></li>
      <li><a href="#thing10">Thing10</a></li>
    </ul>
  </nav>
  
  <section>
    <div id="thing1">
      <h2>Title of Thing1</h2> <br>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
    </div>
        <div id="thing2">
      <h2>Title of Thing2</h2> <br>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
    </div>
        <div id="thing3">
      <h2>Title of Thing3</h2> <br>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
      <br>
          <code> &lt;html&gt; </code>
      <br>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud 
    </div>
        <div id="thing4">
      <h2>Title of Thing4</h2> <br>
  Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. qui officia deserunt mollit anim id est laborum.
    </div>
        <div id="thing5">
      <h2>Title of Thing5</h2> <br>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
    </div>
    <div id="thing6">
      <h2>Title of Thing6</h2> <br>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
    </div>
    <div id="thing7">
      <h2>Title of Thing7</h2> <br>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
    </div>
    <div id="thing8">
      <h2>Title of Thing8</h2> <br>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
    </div>
    <div id="thing9">
      <h2>Title of Thing9</h2> <br>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris id est laborum.
    </div>
    <div id="thing10">
      <h2>Title of Thing10</h2> <br>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
    </div>
  </section>
</body>
              
            
!

CSS

              
                * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  height: 1800px;
  font-family: sans-serif;
  background-color: #fffefc;
}

a {
  text-decoration: none;
  color: #494949;
  font-weight: bold;
  display: block;
  padding: 10px 5px 10px 10px;
}

a:hover {
  color: #232323;
  text-decoration: underline;
  background: #ba910d;
}

a:visited {
  color: #424242;
}

nav {
  position: fixed;
  height: 100vh;
  background: #a0a0a0;
  width: 300px;
  overflow: auto;
}

#title {
  padding: 20px;
}

ul {
  margin-left: 20px;
  list-style: none;
}

ul li {
  background: orange;
  width: 75%;
  margin: auto;
  border-bottom: 5px solid #c48900;
/*   box-shadow: 5px 10px 8px; */
}

ul li:last-of-type {
  border-bottom: none;
}

#thing1, #thing2, #thing3, #thing4, #thing5, #thing6, #thing7, #thing8, #thing9, #thing10 {
  margin-left: 350px;
  padding-top: 15px;
  line-height: 22px;
}

code {
  padding: 15px;
  background: #d8d8d8;
  display: block;
  width: 100vw;
  margin-top: 10px;
}

@media only screen and (max-width: 580px) {
  nav {
    width: 100%;
    height: 200px;
    text-align: center;
  }
  
  li {
    text-align: center;
    margin: auto;
  }
  #thing1, #thing2, #thing3, #thing4, #thing5, #thing6,         #thing7, #thing8, #thing9, #thing10 {
  margin: auto;
  text-align: center;
}
  
code {
  padding: 15px;
  background: #d8d8d8;
  display: block;
  width: 300px;
  margin-top: 10px;
}

  }
              
            
!

JS

              
                
              
            
!
999px

Console