Pen Settings



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


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


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.


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.


                <h1>Let's try a long title to span some lines</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin sed eros eu arcu condimentum mollis. Suspendisse potenti. Curabitur sit amet lectus dui. Cras pellentesque venenatis justo. Nulla pharetra tellus sed sapien faucibus, vitae eleifend dui eleifend. Sed ornare ullamcorper quam, quis imperdiet diam volutpat nec. Pellentesque quis ligula eget augue interdum dignissim.

Aliquam aliquam arcu ullamcorper tempor tristique. Aenean consequat dui vitae fermentum porttitor. Proin et euismod ipsum. Morbi bibendum odio sit amet eros porta, nec elementum arcu congue. Cras consectetur elit quam, vitae tempor massa ornare non. Sed pretium augue eget porta convallis.</p>


                @import url(';700&display=swap');

:root {
  --base-font-size: 16px;
  --base-line-height: 20px;
  --lh-heading-1: calc(var(--base-line-height) * 3);

body {
  font-family: 'Inter';
  font-weight: 400;
  font-size: var(--base-font-size);
  line-height: var(--base-line-height);
  max-width: 330px;
  padding: 64px;
  margin: 64px auto;
  background: #f8f8f8;

h1 {
  font-size: 3.583em;
  line-height: var(--lh-heading-1);