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

              
                <body>
<h1 class="done"><span class="material-icons-outlined">done</span>文字の前にアイコンを入れた見出し</h1>
<h1 class="done_bg"><span class="material-icons-outlined">done</span>文字の前にアイコンを入れた見出し:アイコンに背景あり</h1>
<h1 class="br"><span class="material-icons-outlined">done</span>文字の前にアイコンを入れた見出し:改行したとき、余白をあけずにそのまま下に回り込む場合</h1>
<h1 class="br_left"><span class="material-icons-outlined">done</span>文字の前にアイコンを入れた見出し:改行したとき、そのまま回り込まずに左に余白を取る場合</h1>
</body>

<!-- google マテリアルアイコン -->
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons|Material+Icons+Outlined|Material+Icons+Sharp|Material+Icons+Round|Material+Icons+Two+Tone">
              
            
!

CSS

              
                /* done */
h1.done{
  font-size:24px;
  line-height: 1.8;
}
h1.done span{
  margin-right:5px;
}
/* done_bg */
h1.done_bg{
  font-size:24px;
  line-height: 1.8;
}
h1.done_bg span{
  margin-right:5px;
  background:#000;
  color:#fff;
  border-radius:50%;
}
/* br */
h1.br{
  font-size:24px;
  line-height: 1.8;
}
h1.br span{
  margin-right:5px;
}
/* br_left */
h1.br_left{
  position:relative;
  padding-left:30px;
  font-size:24px;
  line-height: 1.8;
}
h1.br_left span{
  position: absolute;
  top: 10px;
  left: 0;
}
              
            
!

JS

              
                
              
            
!
999px

Console