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

              
                <!-- qiita -->
<blockquote class="qiita">
  <p>qiita sample</p>
  <blockquote class="qiita">
    <p>sample sample</p>
  </blockquote>
</blockquote>

<!-- github-markdown-css -->
<blockquote class="github">
  <p>github sample</p>
  <blockquote class="github">
    <p>sample sample</p> 
  </blockquote>
</blockquote>

<!-- collis https://coliss.com/articles/build-websites/operation/css/css-tutorial-pseudo-element-before-after-by-hongkiat.html-->
<blockquote class="collis">
  collis sample sample sample sample sample sample sample sample sample sample sample sample sample sample
</blockquote>

<!-- atmarkit -->
<blockquote class="atmarkit">
<p>自動テストが失敗した場合だけ、新しいコードを書く。重複を取り除く。2つの規則はプログラミングのタスクにおける順番を意味する。</p>
<div class="cmsList">
<ol>
<li>レッド:動作しないテストを少しだけ作成する。おそらく最初はコンパイルできない</li>
<li>グリーン:テストをすぐに動作させる。そのためには、どのようなコードでもよい</li>
<li>リファクタリング:テストを動作させるためだけに作成された重複を全て取り除く</li>
</ol>
</div>
</blockquote>

<blockquote class="original">
 <p>original</p>
  <blockquote class="original">
    <p>original</p>
</blockquote>
</blockquote>
              
            
!

CSS

              
                /* qiita */
blockquote.qiita {
    border-left: .4rem solid #ddd;
    color: #777;
    padding: 1em;
    padding-right: 0;
    margin: 1.5em 0;
    font-size: .95em;
}
blockquote.qiita>:first-child {
  margin-top: 0;
}
blockquote.qiita>:last-child {
  margin-bottom: 0;
}


/* github markdown css */
blockquote.github {
  margin: 0;
  margin-bottom: 16px;
  margin-top: 0;
  border-left: .25em solid #dfe2e5;
  color: #6a737d;
  padding: 0 1em;
}
blockquote.github>:first-child {
  margin-top: 0;
}
blockquote.github>:last-child {
  margin-bottom: 0;
}

/* collis */
blockquote.collis{
  bpx-sizing: boder-box;
  margin: 1rem 0;
  padding: 0 24pt;
  position: relative;
}
blockquote.collis::before, 
blockquote.collis::after{
  font-size: 24pt;
  text-align: center;
  color: #fff;
  background-color: #ddd;
  position: absolute;
  top: 0;
  bottom: 0;
}
blockquote.collis::before {
  content: open-quote;
    
  left: 0;
}
blockquote.collis::after {
  content: close-quote;
  right: 0;
}

/* atmarkit */
blockquote.atmarkit{
  background-color: #EEE;
  padding: 10px;
}
blockquote.atmarkit::before{
  content: open-quote;
  color: #ccc;
  display: inline;
  font-size: 4em;
  line-height: .8;
  vertical-align:middle;
}

blockquote.atmarkit>:first-child {
  margin-top: 0;
}

/* original */
blockquote.original {
  border-left: .4rem solid #ddd;
  color: #777;
  padding: 1em;
  padding-right: 0;
  margin: 1.5em 0;
  font-size: .95em;
}
blockquote.original>:first-child {
  margin-top: 0;
}
blockquote.original>:last-child {
  margin-bottom: 0;
}
blockquote.original::before{
  content: "\201C";
  display: inline-block;
  font-size: 1.8em;
  font-weight: bold;
  vertical-align: top;
}
              
            
!

JS

              
                
              
            
!
999px

Console