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 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

              
                <link href="//netdna.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet">

  <div class="loading"><i class="fa fa-spinner fa-spin"></i></div>
  
  <div class="screen">
    <h1>Dummy Text</h1>
    <p>
    Natoque facilisi diam quisque aliquam posuere. Pede dolor suspendisse faucibus, primis mi vivamus sagittis mauris tempor torquent, molestie lectus. Leo. Aptent tellus mi mauris Malesuada aenean lectus bibendum.
    </p>
    <p>
    Hac nullam. Integer integer. Facilisi donec. Venenatis Non consequat, cum accumsan. Luctus pulvinar non hendrerit per fames quis.
    </p>
    <p>
    Euismod massa aliquam diam vulputate consectetuer nostra, bibendum auctor ante. Quam. Gravida diam lobortis sapien sociis justo. Tristique augue vehicula sem condimentum euismod ornare.
    </p>
    <p>
    Et sodales elit conubia venenatis sagittis penatibus malesuada. Habitant ligula turpis nisi nulla lacus sagittis leo lorem orci torquent pulvinar rutrum habitant diam dis nibh nibh velit enim ante scelerisque.
    </p>
  </div>
              
            
!

CSS

              
                @import "compass/css3";

.loading {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100px;
  height: 100px;
  margin: -50px 0 0 -50px;
  line-height: 100px;
  font-size: 56px;
  color: #fff;
  text-align: center;
  background-color: rgba(#000,.7);
  @include border-radius(10px);
}

body {
  background-color: #666;
}
.screen {
  poisition: relative;
  width: 320px;
  height: 100%;
  margin: 0 auto;
  padding: 10px;
  background-color: #fff;
  overflow: hidden;
  box-shadow:0 2px 10px rgba(#000,.5);
  @include box-sizing(border-box);
}

              
            
!

JS

              
                
              
            
!
999px

Console