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

              
                .container
  %p Proin fringilla arcu a lacus tristique, id malesuada quam eleifend. Aliquam quis nulla egestas, luctus metus quis, mollis arcu. Aenean quis urna iaculis, placerat sapien vel, scelerisque ex. Sed sit amet lacus lorem. Phasellus molestie in ante a ornare. Pellentesque quis pellentesque mi. Nullam ut mattis mauris, eget ultricies nunc. Curabitur varius fermentum ipsum, non euismod nisi. Quisque eget arcu risus. Praesent sit amet suscipit purus. Nunc suscipit justo ex, in rutrum odio pellentesque non. Donec velit leo, pharetra mollis tempus in, congue eu magna. Suspendisse potenti. Cras vulputate egestas libero at varius. Nunc eu viverra sapien.
  %p Morbi eu tortor nulla. Aenean rutrum interdum ornare. Quisque at erat maximus, egestas ante vitae, viverra velit. Vestibulum placerat nulla eu gravida finibus. Cras libero mauris, malesuada ac hendrerit quis, gravida in odio. Vivamus efficitur bibendum ex, at euismod erat ultrices ac. Duis vitae faucibus felis, in venenatis diam.
  
  %blockquote.breakout
    .container This is a block that breaks out of the container and has text inside
    
  %p Aenean gravida nunc non arcu commodo, vitae lacinia magna molestie. Nullam rhoncus ex et felis sagittis pharetra. Donec tempor enim quis dignissim consectetur. Donec bibendum, lectus nec tincidunt ornare, nibh nisi ornare lacus, in bibendum nulla augue vel sapien. Nulla interdum augue vel malesuada suscipit. Aliquam egestas, risus ut molestie eleifend, erat dui porta velit, eget dapibus mi sapien ut massa. Mauris scelerisque venenatis condimentum.
  %p Aenean faucibus lacus eu mi eleifend pharetra vitae quis orci. Aenean aliquet ligula a ipsum molestie efficitur. Mauris in magna suscipit, finibus tellus in, posuere ex. Vivamus pretium dignissim justo, in placerat dolor semper eu. Cras nec nunc pellentesque, elementum nunc non, vestibulum mauris. Vivamus placerat consequat ligula, vel egestas dolor lacinia ut. Mauris turpis nunc, tristique quis rhoncus at, mollis eu tellus.
              
            
!

CSS

              
                * {
  box-sizing: border-box;
}

.container {
  max-width: 1024px;
  margin: 0 auto;
}

.breakout { 
  position: relative;
  left: 50%;
  transform: translate(-50%, 0);
  width: 100vw; 
  background: linear-gradient(to left, rgba(0,0,0,0.4) 0%,rgba(0,0,0,.1) 100%);
}

blockquote {
  margin: 0;
  padding: 1.5rem;
  font-size: 1.2rem;
  font-weight: bold;
}
              
            
!

JS

              
                
              
            
!
999px

Console