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

              
                <main>
  <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent quis vulputate nulla, scelerisque rutrum urna. Curabitur mauris orci, sodales eu neque sit amet, venenatis finibus lorem. Vestibulum pulvinar odio eget eros luctus, at aliquam purus molestie. Donec elementum nunc et mi vestibulum egestas. Integer quis nunc condimentum, porta erat et, pulvinar purus.</p>
  <img src="https://www.ampproject.org/static/img/docs/pwamp_add_to_homescreen.png" width="848" height="1500">
  <p>Mauris et condimentum lacus. Praesent metus tellus, elementum sit amet nunc non, ultrices feugiat risus. Maecenas auctor elit vitae metus sagittis porta. Quisque finibus suscipit ultrices. Nulla turpis eros, convallis sit amet est sed, pulvinar malesuada dolor. Morbi bibendum mi non dui fringilla, quis porttitor ligula posuere. Aenean ultrices suscipit libero, sit amet feugiat velit molestie in.</p>
  <ul>
    <li>Look at me, I'm a list item</li>
    <li>Me too, guess what</li>
    <li>Hey, don't forget me! I know, I'm a really long entry but I deserve some love too. Can't you see that?</li>
    <li>OK if #3 can join, I want in as well</li>
    <li>Fine whatever, looks like we're all here now.</li>
  </ul>
  <p>Curabitur euismod leo libero, id scelerisque sapien maximus et. Praesent vehicula lacinia rutrum. Quisque vitae mauris dictum, finibus lectus sit amet, laoreet tortor. Nulla fermentum tortor arcu, ac aliquet diam vestibulum at. Ut tincidunt venenatis rhoncus. Morbi blandit consectetur tincidunt. Vestibulum sit amet velit vitae arcu accumsan luctus. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Morbi eu pellentesque ligula, at pharetra lectus. Fusce et augue porta, pellentesque felis vehicula, mollis neque. Aenean non purus a mauris lacinia iaculis vel in sapien. Aliquam ante metus, sodales quis fringilla in, rhoncus eu metus.</p>
  <p>Nulla ultrices, justo vestibulum blandit mollis, magna orci placerat nisl, a tincidunt dui diam a nisl. Nam a nulla pharetra, dapibus eros sed, egestas felis. Donec ac enim eget eros tempus dignissim ac vitae risus. Donec a mi a est fringilla congue et non leo. In hac habitasse platea dictumst. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Vestibulum nec consectetur nulla. Praesent venenatis elit vehicula tincidunt tincidunt. Morbi erat nunc, maximus at porttitor eget, gravida ut quam.</p>
  <p>Pellentesque in felis in est sodales mattis. Integer neque magna, gravida sit amet nisi id, dignissim imperdiet lectus. Donec ut nisi est. Suspendisse convallis tempus volutpat. Nunc venenatis hendrerit ligula, eget molestie magna pulvinar nec. Nam id luctus ex, eget finibus felis. Sed efficitur lacus vitae congue euismod. Vivamus lobortis purus eu sem tristique, vel sagittis dolor volutpat. Mauris dictum malesuada felis, sit amet dapibus mi. Pellentesque et finibus mauris. Phasellus metus ipsum, ullamcorper vitae neque sed, sollicitudin interdum odio. Sed ut urna efficitur urna fermentum faucibus et at ligula.</p>

</main>
              
            
!

CSS

              
                body {
  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;
}

main {
  width: 80%;
  max-width: 800px;
  margin: 0 auto;
  padding: 1em 2em;
  background: #f5f6f5;
  box-sizing: border-box;
}

img {
  width: 33%;
  height: auto;
  float: left;
}

ul {
  /* just for visualization purposes */
  border: 1px solid red;
  
  /* display: inline-block; */
  /* display: flex; /* 
  /* flex-direction: column; */
  /* overflow: hidden; */
}
              
            
!

JS

              
                
              
            
!
999px

Console