Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ 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

Auto Save

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

              
                <div id="wrapper">
  <div id="content">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Sint harum voluptate nihil vel odio fugit cupiditate doloremque. Impedit nam nulla dignissimos br explicabo quas, voluptatum, odio accusantium recusandae, consectetur delectus cum? Ducimus iste, incidunt repudiandae quos minima optio dolore, nulla, obcaecati quis cum autem architecto nesciunt, sed omnis? Soluta consequuntur dignissimos error, esse minus saepe, tenetur doloremque quis earum dolore nostrum itaque, obcaecati aut ullam repellendus. Eos possimus, id alias debitis omnis magnam qui assumenda incidunt aliquid ad animi, vel laboriosam quas quis. Nisi facere distinctio eius, laborum, cumque aspernatur, quibusdam fugiat suscipit amet necessitatibus dolores. Delectus quis, odit sed facere.
 </div>
  
  <div id="side">Sidebar</div>
</div>
              
            
!

CSS

              
                #wrapper {
  overflow: hidden;
}

#content, #side {
  float: left;
}

#content {
  background: #333;
  color: #fff;
  width: 80%;
}

#side {
  margin-top: -9999px;
  margin-bottom: -9999px;
  padding-top: 9999px;
  padding-bottom: 9999px;
  width: 20%;
  background: silver;
}
              
            
!

JS

              
                
              
            
!
999px

Console