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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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

              
                <div class="container">
  <h1>Britain</h1>
  <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/123941/css-shapes-9.jpg" class="b" />
  <p>EFORE we go anywhere else, we must first have a look at our own dear native land.</p>
  <p>Many people pack up their boxes and trunks, and rush off to see other countries, without knowing anything about the land in which they
    live. They can tell long stories of what they have seen in Italy and France; but when you come to ask them about their own country, they cannot say anything, We will take care, my little one, not to be like them. What is the name of the country in which we live?</p>
  <p>It is called England, and when Scotland and Wales are added to it, it goes by the name of Great Britain.</p>
  <p>Now look for it on the map. Here it is on the left hand. You will notice that the water goes all around it; it is therefore called an island. We are not going to speak of the whole island, however, just at present.</p>
  <p>By-and-by we shall visit Scotland and Wales. We must keep just now only to England. Does it not look a tiny place? It is only 400 miles long, and 360 miles broad; yet it is very dear to us, because it is our home. Although it is so small, English people have found their way all over the world. England is a great motherland. She has many children in places called Colonies, all of which look up to her with love and respect, as they have sprung from her.</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=Mr+Bedfort|Quattrocento);

body {
  background: #fff;
  color: #333;
  font-family: 'Quattrocento', serif;
}
h1 {
  color: #1400ac;
  font-family: 'Mr Bedfort', serif;
  font-size: 100px;
  font-weight: normal;
  padding-top: 10px;
  text-align: center;
}
.container {
  max-width: 500px;
}
.b {
  float: left;
  shape-outside: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/123941/css-shapes-9.jpg);
  shape-image-threshold: 0.0;
  shape-margin: 10px;
}
              
            
!

JS

              
                
              
            
!
999px

Console