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 class="container">
  <h1>Windsor Castle</h1>
  <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/123941/css-shapes-10.jpg" class="windsor-margin" />
  <p>What a beautiful morning it is! How nice it is to get up fresh!</p>
  <p>I am now going to take you down to Oxford, to show you one of the prettiest sights of England.</p>
  <p>What a bustle there is at the station! Off we go, puff, puff, puff. Look out there; that is Windsor Castle, where the Queen of ten stays. It is such a splendid place! Do you see the great flag flying? That is to tell us that the Queen is there. Her name is Victoria; and her eldest son, who may one day be king, is named Albert Edward.</p>
  <p>See the river Thames winding about; this tells us we are getting near to our journey's end.</p>
</div><!-- container -->

<p class="p">Demo by Patrick Catanzariti. <a href="http://www.sitepoint.com/css-shapes-bre…angular-design/">See article</a>.</p>
              
            
!

CSS

              
                @import "https://s3-us-west-2.amazonaws.com/s.cdpn.io/123941/typeplate.css";
@import url(https://fonts.googleapis.com/css?family=Montez);

body {
  background-color: #2d753e;
  color: #fff;
}
.container {
  max-width: 600px;
}
h1 {
  color: #fff;
  font-family: 'Montez', cursive;
  text-align: center;
}
.windsor-margin {
  border-radius: 150px;
  float: left;
  margin: 5px;
  shape-outside: margin-box;
  max-width: 400px;
  width: 70%;
}
              
            
!

JS

              
                
              
            
!
999px

Console