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 is required to process package imports. If you need a different preprocessor remove all packages first.

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

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

              
                
<h1>Here is a title</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec eleifend semper ligula et rhoncus. Nunc tristique, mi nec facilisis malesuada, leo leo elementum est, id consectetur ex metus non risus. Aliquam sit amet nulla mauris. Fusce vel vestibulum urna. Cras sit amet posuere dui. Morbi nunc quam, dapibus in lectus faucibus, posuere ullamcorper nulla. Nunc id dictum est. Sed et est non diam posuere dictum eget sit amet felis. Nam interdum, metus quis porttitor porta, sem lacus consectetur enim, a vulputate urna nibh id sem.</p>

<p>
Fusce a metus tortor. Curabitur tincidunt venenatis dolor, at molestie orci auctor sed. Curabitur pretium nulla arcu, sed vehicula enim dignissim nec. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae; Nunc lobortis feugiat mollis. Nullam eleifend, nisi faucibus viverra egestas, dui ex iaculis dui, nec tempor enim elit non nibh. Aliquam et tellus eget dolor tincidunt accumsan at at tellus. Maecenas accumsan est vel risus gravida, a tincidunt neque aliquam. Mauris eu dolor vel libero consectetur pharetra. Nullam vehicula, mi id porttitor volutpat, justo nisl malesuada tellus, nec elementum sapien odio ac nisl. Cras elementum dui id dignissim congue. Aliquam at enim ut metus scelerisque tempor non vel erat. Donec vehicula ornare tempor. Aliquam orci velit, interdum lacinia purus et, imperdiet faucibus felis. Aliquam ullamcorper quam sit amet mauris cursus dapibus.</p>

<img src="https://images.unsplash.com/photo-1584559759045-d5062ca44f09?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1848&q=80" alt="">
<p>
Vivamus euismod ipsum massa, sed consequat sapien accumsan et. Donec vitae elementum est, quis pharetra sem. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Etiam quis elit vel ante semper gravida sit amet nec tortor. Donec a accumsan nisl, eu sollicitudin lectus. Integer id nisl velit.</p>

<p>
Pellentesque porta ut ipsum et rhoncus. Ut augue elit, porta vel metus eu, mattis dignissim purus. Suspendisse potenti. Donec a porta tellus, eu hendrerit dolor. Phasellus interdum rhoncus mauris et consectetur. Vivamus pretium magna eu turpis vulputate mattis at in nibh. Interdum et malesuada fames ac ante ipsum primis in faucibus. Vivamus luctus, massa eget lacinia consequat, orci ante suscipit felis, eget eleifend enim felis in lacus. Sed hendrerit vel sem sed volutpat. Aliquam volutpat justo at erat varius, non tempor nisi sodales. Donec rhoncus leo quis massa rutrum consectetur. Sed aliquet, justo non blandit dapibus, libero risus hendrerit ipsum, eu vulputate ante orci at ipsum. Curabitur volutpat, justo eget ullamcorper dignissim, purus turpis tempor lectus, quis vehicula lorem risus at mauris. Etiam id arcu eget nisi lobortis vestibulum vitae vel lectus. Suspendisse ut auctor leo. Duis sit amet facilisis enim.</p>

<p>
Proin consequat nibh ex, sit amet commodo lacus porta eu. Phasellus quis enim et quam ornare fringilla. Aliquam vestibulum pretium ultrices. In cursus feugiat sagittis. Donec posuere dui non lorem bibendum ultrices. Suspendisse in felis nec sem sodales sodales sed non magna. Pellentesque sit amet eleifend erat. Nullam sed commodo lacus. </p>
              
            
!

CSS

              
                body > * {
  max-width: 40rem;
  margin: 2rem auto;
}

body img {
  display: block;
  max-width: 100%
}

/* boilerplate */
body {
  margin: 0;
  font-family: "BLOKK";
}

              
            
!

JS

              
                
              
            
!
999px

Console