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>Rome</h1>
  <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/123941/css-shapes-6.jpg" class="rome" />
  <p>Below us is the far-famed city of Rome, the most celebrated city in the whole world. In old times the Romans were the conquerors of the world, and their city was the chief capital of their empire. When it was most flourishing its walls extended for 13 miles round, and its population amounted to 2,000,000. It has now dwindled down very much, and, while still the capital of Italy, its population only amounts to 250,000, about the same number as dwell at Leeds; and four of the seven hills upon which it was built,and which were thickly crowded with houses, are now occupied only by vineyards and gardens.</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=Cinzel|Balthazar);

body {
  background: #fff9e8;
  font-family: 'Balthazar', serif;
}
h1 {
  font-family: 'Cinzel', serif;
  font-size: 100px;
  font-weight: normal;
  padding-top: 10px;
  text-align: center;
}
.container {
  max-width: 400px;
}
.rome {
  float: right;
  shape-outside: ellipse();
  max-width: 200px;
  width: 50%;
}
              
            
!

JS

              
                
              
            
!
999px

Console