Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ 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

Auto Save

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

              
                <div>
  <h2>Show</h2>
  <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean ultrices venenatis nisi sit amet posuere. Aliquam erat volutpat. Cras vel volutpat metus. Duis pharetra ut orci at luctus. Vivamus tempus quis justo iaculis interdum. Morbi imperdiet neque et urna vehicula porttitor. Cras hendrerit feugiat orci, et tempus purus. Etiam sollicitudin quam sed tortor vulputate tempus. Ut condimentum porta venenatis. Donec fermentum vel leo eu pellentesque.</p>
</div>
<div>
  <h2>Show 2</h2>
  <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean ultrices venenatis nisi sit amet posuere. Aliquam erat volutpat. Cras vel volutpat metus. Duis pharetra ut orci at luctus. Vivamus tempus quis justo iaculis interdum. Morbi imperdiet neque et urna vehicula porttitor. Cras hendrerit feugiat orci, et tempus purus. Etiam sollicitudin quam sed tortor vulputate tempus. Ut condimentum porta venenatis. Donec fermentum vel leo eu pellentesque.</p>
</div>
<div>
  <h2>Show 3</h2>
  <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean ultrices venenatis nisi sit amet posuere. Aliquam erat volutpat. Cras vel volutpat metus. Duis pharetra ut orci at luctus. Vivamus tempus quis justo iaculis interdum. Morbi imperdiet neque et urna vehicula porttitor. Cras hendrerit feugiat orci, et tempus purus. Etiam sollicitudin quam sed tortor vulputate tempus. Ut condimentum porta venenatis. Donec fermentum vel leo eu pellentesque.</p>
</div>
<div>
  <h2>Show 4</h2>
  <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean ultrices venenatis nisi sit amet posuere. Aliquam erat volutpat. Cras vel volutpat metus. Duis pharetra ut orci at luctus. Vivamus tempus quis justo iaculis interdum. Morbi imperdiet neque et urna vehicula porttitor. Cras hendrerit feugiat orci, et tempus purus. Etiam sollicitudin quam sed tortor vulputate tempus. Ut condimentum porta venenatis. Donec fermentum vel leo eu pellentesque.</p>
</div>
              
            
!

CSS

              
                body{font-family:sans-serif; background:#222; color:#fff; display:flex; justify-content: space-between; flex-wrap:wrap; padding-top:50px; background:url('https://orig00.deviantart.net/695f/f/2016/192/6/4/discovering_by_qauz-da9mr8t.jpg'); background-size:cover;}


div{width:400px; border:1px solid #fff; border-top:none; position:relative; margin-top:25px; background:rgba(0,0,0,0.2)}
div:before{content:''; display:block; height:1px; width:20px; background:#fff}
div:after{content:''; display:block; height:1px; width:70%; background:#fff; position:absolute; top:0; right:0}
h2, p {padding: 0 30px;}
h2{position:absolute; margin-top: -15px; color:yellowgreen;}
              
            
!

JS

              
                
              
            
!
999px

Console