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="border kinds1">solid / 1本線</div>
<div class="border kinds2">double / 2本線</div>
<div class="border kinds3">dashed / 破線</div>
<div class="border kinds4">dotted / 点線</div>
<div class="border kinds5">groove / 立体的に窪んだ線</div>
<div class="border kinds6">ridge / 立体的に出っ張った線</div>
<div class="border kinds7">inset / 上と左が暗め・下と右が明るめ</div>
<div class="border kinds8">outset / 上と左が明るめ・下と右が暗め</div>
              
            
!

CSS

              
                .border {
  font-size: 18px;
  padding: 5px
}
.border:nth-child(n+2) {
  margin-top: 20px;
}

.kinds1 { border: 5px solid #E9B243; }
.kinds2 { border: 5px double #E9B243; }
.kinds3 { border: 5px dashed #E9B243; }
.kinds4 { border: 5px dotted #E9B243; }
.kinds5 { border: 5px groove #E9B243; }
.kinds6 { border: 5px ridge #E9B243; }
.kinds7 { border: 5px inset #E9B243; }
.kinds8 { border: 5px outset #E9B243; }
              
            
!

JS

              
                
              
            
!
999px

Console