Pen Settings



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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource


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


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.


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.


                <div class="header">
    <img src="" class="logo" alt="">
  <span class="claim">
    Reality is often disappointing - Thanos 2018 
  <nav class="navigation">
    <li class="item"><a href="#">Home</a></li>
    <li class="item"><a href="#">Products</a></li>
    <li class="item"><a href="#">Test</a></li>
    <li class="item"><a href="#">Events</a></li>
    <li class="item"><a href="#">Contact</a></li>
<div class="content">
  <h1>HTML isch cool</h1>
  <p class="lorem">Lorem ipsum dolor sit amet consectetur adipisicing elit. Esse mollitia, similique, exercitationem sapiente debitis neque ipsa, velit minima iure magni suscipit alias quibusdam est! Ullam ratione perferendis dolore consectetur corporis.


  padding: 0;
  font-family: Arial, sans-serif;
  display: grid;
  width: 50%;
  grid-template: 1fr 1fr; 
  background-color: lightgray;
  margin: auto;

  display: inline;
  width: 100%;
  text-align: center;
  padding-bottom: 10px;
  padding-top: 10px;

  text-decoration: none;
  color: black;
  display: block;
.item:hover {
  background-color: darkgray;
.item a:hover {
  color: white;

  display: flex;
  justify-content: space-between;
  grid-column-start: 1;
  grid-column-end: 3;

  width: 12%;
  height: auto;
  grid-column-start: 1;
  grid-column-end: 1;
  padding: 20px 0px 0px 70px;
  display: flex;
  justify-content: flex-end;
  align-self: center;
  grid-column-start: 2;
  grid-column-end: 2;
  padding-right: 65px;

.active {
  background-color: #4CAF50;

  width: 50%;
  height: 200px;
  margin: auto;
  background-color: darkgray;

  padding-top: 15px;
  padding-left: 15px;

  padding-left: 15px;
  padding-right: 15px;