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

+ 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

              
                <section>
  <p>Bacon ipsum dolor amet doner ham ball tip, chislic leberkas jowl cow. Pastrami turducken beef ribs ribeye, ham hock picanha shank porchetta short loin tri-tip corned beef andouille hamburger. Andouille bresaola capicola filet mignon. Pig bresaola corned beef ham, swine brisket kielbasa venison. Meatball hamburger strip steak, picanha t-bone tenderloin short loin. Porchetta jerky shoulder beef, tenderloin capicola biltong cow tail bacon andouille spare ribs. Rump short ribs chicken, beef jowl kevin pork loin t-bone sirloin shankle strip steak capicola.</p>
</section>
<section>
  <p>Meatloaf pork belly fatback cow chuck frankfurter short ribs beef ribs. Short loin burgdoggen fatback, brisket tri-tip chuck chislic filet mignon buffalo turkey ground round drumstick pork jerky andouille. T-bone turducken shankle, drumstick tongue beef ribs jowl ribeye corned beef capicola flank pork chop bacon tail. Chislic beef hamburger, drumstick meatloaf capicola burgdoggen pork chop tail cupim turducken pork belly andouille jerky spare ribs.</p>
</section>
<section>
  <p>Pork loin tongue chuck drumstick, meatball biltong hamburger beef ribs salami ground round filet mignon. Ribeye pork brisket, beef ribs pancetta ham buffalo turducken meatloaf drumstick tongue leberkas. Tenderloin porchetta ground round capicola sirloin salami. Salami chuck t-bone brisket hamburger pig. Rump spare ribs pork loin prosciutto salami ham ribeye short ribs ball tip drumstick filet mignon buffalo swine ham hock. Chicken sausage pork loin andouille frankfurter, capicola alcatra hamburger kevin ham hock ground round pork chop jerky meatloaf. Bresaola chislic meatball, cupim turducken picanha beef shoulder.</p>
</section>
              
            
!

CSS

              
                // Content max-width: at least 80% of screen size but no larger than 75ch.
:root {
  --page-padding-x: calc((100vw - min(80vw, 75ch)) / 2);
}

section {
  padding-inline: var(--page-padding-x);
}

// Demo code
section {
  padding-block: 2rem;

  &:nth-child(even) {
    background: yellow;
  }
}

p {
  margin: 0 0 1rem 0;

  &:last-child {
    margin-block-end: 0;
  }
}

              
            
!

JS

              
                
              
            
!
999px

Console