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

              
                <a href="#" class="btn">ボタンのデザイン</a>
              
            
!

CSS

              
                .btn {
  display: block;
  font-size: 16px;/*文字サイズ*/
  padding: 0.6em 0 0.5em;
  text-decoration: none;
  background: #535c97;/*背景色*/
  color: #fff;/*文字色*/
  max-width: 300px;
  margin: 40px auto 0;
  text-align: center;
  border: solid 2px #535c97;/*枠の色*/
  transition: .3s;
  box-shadow:
  0 0.1px 0.2px rgba(0, 0, 0, 0.015),
  0 0.2px 0.5px rgba(0, 0, 0, 0.022),
  0 0.3px 0.9px rgba(0, 0, 0, 0.027),
  0 0.5px 1.4px rgba(0, 0, 0, 0.031),
  0 0.8px 2px rgba(0, 0, 0, 0.035),
  0 1.1px 2.8px rgba(0, 0, 0, 0.039),
  0 1.5px 4px rgba(0, 0, 0, 0.043),
  0 2.2px 5.8px rgba(0, 0, 0, 0.048),
  0 3.4px 9px rgba(0, 0, 0, 0.055),
  0 6px 16px rgba(0, 0, 0, 0.07)
;
}
.btn:hover{
  background: #fff;/*背景色*/
  color: #535c97;/*文字色*/
box-shadow:
  0 0.4px 1.2px rgba(0, 0, 0, 0.015),
  0 0.8px 2.7px rgba(0, 0, 0, 0.022),
  0 1.4px 4.5px rgba(0, 0, 0, 0.027),
  0 2.1px 6.8px rgba(0, 0, 0, 0.031),
  0 3px 9.8px rgba(0, 0, 0, 0.035),
  0 4.3px 13.8px rgba(0, 0, 0, 0.039),
  0 6px 19.6px rgba(0, 0, 0, 0.043),
  0 8.8px 28.5px rgba(0, 0, 0, 0.048),
  0 13.5px 43.9px rgba(0, 0, 0, 0.055),
  0 24px 78px rgba(0, 0, 0, 0.07)
;
}

              
            
!

JS

              
                
              
            
!
999px

Console