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

              
                <article>
  <p>Bacon ipsum dolor sit amet t-bone flank bacon short ribs tri-tip ribeye spare ribs chicken leberkas. Landjaeger doner tail spare ribs tenderloin boudin prosciutto flank shankle ball tip short ribs bacon shank venison. Pork chop prosciutto cow doner, turkey jerky filet mignon beef ribs short ribs ball tip brisket ham pastrami kielbasa. Chuck brisket pork belly shoulder.</p>
 
  <p>Kielbasa bacon boudin swine cow tri-tip shankle. Ham hock flank landjaeger porchetta, strip steak t-bone short loin beef chuck tri-tip kielbasa bresaola prosciutto hamburger bacon. Cow t-bone bresaola, swine ham bacon shankle ground round. Turkey pancetta sirloin, beef spare ribs boudin biltong pork frankfurter meatloaf jerky meatball bacon porchetta jowl.</p>
 
  <div class='full-width'>
    <p>Some content here</p>
  </div>
 
  <p>Bacon ipsum dolor sit amet t-bone flank bacon short ribs tri-tip ribeye spare ribs chicken leberkas. Landjaeger doner tail spare ribs tenderloin boudin prosciutto flank shankle ball tip short ribs bacon shank venison. Pork chop prosciutto cow doner, turkey jerky filet mignon beef ribs short ribs ball tip brisket ham pastrami kielbasa. Chuck brisket pork belly shoulder.</p>
 
  <p>Kielbasa bacon boudin swine cow tri-tip shankle. Ham hock flank landjaeger porchetta, strip steak t-bone short loin beef chuck tri-tip kielbasa bresaola prosciutto hamburger bacon. Cow t-bone bresaola, swine ham bacon shankle ground round. Turkey pancetta sirloin, beef spare ribs boudin biltong pork frankfurter meatloaf jerky meatball bacon porchetta jowl.</p>
  
  <p>Kielbasa bacon boudin swine cow tri-tip shankle. Ham hock flank landjaeger porchetta, strip steak t-bone short loin beef chuck tri-tip kielbasa bresaola prosciutto hamburger bacon. Cow t-bone bresaola, swine ham bacon shankle ground round. Turkey pancetta sirloin, beef spare ribs boudin biltong pork frankfurter meatloaf jerky meatball bacon porchetta jowl.</p>
  
  <p>Kielbasa bacon boudin swine cow tri-tip shankle. Ham hock flank landjaeger porchetta, strip steak t-bone short loin beef chuck tri-tip kielbasa bresaola prosciutto hamburger bacon. Cow t-bone bresaola, swine ham bacon shankle ground round. Turkey pancetta sirloin, beef spare ribs boudin biltong pork frankfurter meatloaf jerky meatball bacon porchetta jowl.</p>
</article>
              
            
!

CSS

              
                $max-width: 600px;

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

article {
  max-width: $max-width;
  margin-left: auto;
  margin-right: auto;
}

.full-width {
  background: #faa;
  width: 100vw;
  @media all and (min-width: $max-width) {
    margin-left: calc(300px - 50vw);
    margin-right: calc(300px - 50vw);
  }
}

p {
  margin: 15px 0;
}
              
            
!

JS

              
                
              
            
!
999px

Console