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. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ 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 id="braced-corners">
  <p>Nowhere is this axiom of design more readily apparent than on board the world famous battlestar Galactica. This ship, the last of her kind still in service, was constructed over fifty years ago during the early days of the Cylon War. Originally, there were twelve battlestars, each representing one of Kobol's twelve colonies.</p>
</div>

<div id="clipped-corners">
  <p>You'll see things here that look odd, even antiquated to modern eyes. Phones with cords, awkward manual valves, computers that barely deserve the name. But all of it is intentional. It's all designed to operate in combat
against an enemy who could infiltrate and disrupt all but the most basic computer systems.
</div>
              
            
!

CSS

              
                @import url(https://fonts.googleapis.com/css?family=Droid+Sans+Mono);
* { box-sizing: border-box; }
body { 
  background: #003;
  color: #fff;
  font-family: Droid Sans Mono;
  line-height: 1.5;
  display: flex;
}
div { 
  margin: 2rem; 
  padding: 0 2% 0 2%;
  background-image: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/4273/grid.svg);
    background-size: 3%;
}
#braced-corners { 
		border-image: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/4273/brace.svg) 50 50; 
		background-color: rgba(255,255,255,0.3);
		border-style: inset;
		border-width: 30px;
    transition: .8s;
	}
#braced-corners:hover {
  border-image: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/4273/brace.svg) 25 25; 
  background-size: 2%;
}
#clipped-corners {
border-image: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/4273/clipped-corner.svg) 50 50 repeat repeat; 
		border-style: outset;
		border-width: 25px;
		box-shadow: inset rgba(255,255,255,0.3) 0 0 0 250px;
  transition: .6s;
}
#clipped-corners:hover {
  background-size: 2%;
}
              
            
!

JS

              
                
              
            
!
999px

Console