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>Florence</h1>
  <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/123941/css-shapes-5.jpg" class="florence" />
  <p>Driving through some narrow streets, we are now in the Piazza del Duomo. Yonder is the Cathedral. You may well be astonished, Jack. Like so many other churches in Florence, the Cathedral has nothing at the west end but a bare wall, that looks very ugly. When the Florentines had decorated the interior, and had finished the other parts of their buildings, money evidently ran short, and the churches were too often left unfinished. It looks very curious, however, does it not? The dome, covered with white marble, is very fine. Inside, while rather bare compared with other Italian churches, its large size and vast height make it very striking.</p>
</div><!-- container -->

<p class="p">Demo by Patrick Catanzariti. <a href="css-shapes-breaking-rectangular-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=Monsieur+La+Doulaise);

body {
  background-color: #fcffb0;
}
h1 {
  font-family: 'Monsieur La Doulaise', cursive;
  font-size: 100px;
  font-weight: normal;
  padding-top: 10px;
  text-align: center;
}
.container {
  max-width: 400px;
}
.florence {
  float: left;
  shape-outside: circle(farthest-side at left);
  max-width: 200px;
  width: 50%;
}
              
            
!

JS

              
                
              
            
!
999px

Console