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.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

HTML

            
              <h1>H1 Heading</h1>
<h2>H2 Heading</h2>
<h3>H3 heading</h3>
<p>Here's a paragraph. Vivamus eget tristique ligula. Donec lacus nisl, posuere ac molestie sed, maximus id metus. Nunc consectetur vitae odio sed dignissim. Duis mattis vehicula tellus vel blandit. Nunc ultrices, justo sit amet pharetra venenatis, nisi ex fringilla nisi, vel suscipit ligula orci at tellus. Aliquam lorem quam, vehicula quis tincidunt eu, aliquam sit amet ex. Pellentesque hendrerit ultricies gravida. Pellentesque et finibus massa, ut fermentum libero. In scelerisque erat dolor, sit amet luctus augue elementum id. Nullam feugiat, ligula quis rhoncus tincidunt, orci dolor fermentum lacus, eu commodo metus erat ac diam.</p>
            
          
!

CSS

            
              @import "lesshat";

// This allows you to easily change 
// the font size across the entire site
// by only adjusting the @baseFontSize value

@baseFontSize: 10px; // changing this affects each element in your site (if you are using the mixin below)

// Font size mixin for LESS
.font-size(@sizeValue) {
  @remValue: @sizeValue;
  @pxValue: (@sizeValue * @baseFontSize);
  font-size: ~"@{pxValue}";
  font-size: ~"@{remValue}rem";
}

// Examples of using the mixin in your LESS file...
html {
  // set base font size (all font-size declarations are rem so they point to this)
  font-size: @baseFontSize;
  -webkit-text-size-adjust: auto;
  -ms-text-size-adjust: @baseFontSize;
}

body {
  .font-size(1.9); // 19px if @baseFontSize is 10px
}
h1 { .font-size(3.2); }
h2 { .font-size(2.6); }
h3 { .font-size(2.2); }
            
          
!

JS

            
              
            
          
!
999px

Console