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="container">
  <div class="item">
    <p class="subItem title">吾輩は猫である</p>
    <p class="subItem dicription">
      吾輩は猫である。<br/>名前はまだ無い。
    </p>
    <p class="subItem caption">
      夏目漱石
    </p>
  </div>
  <div class="item">
    <p class="subItem title">羅生門</p>
    <p class="subItem dicription">
      ある日の暮方の事である。<br/>一人の下人が、羅生門の下で雨やみを待っていた。
    </p>
    <p class="subItem caption">
      芥川龍之介
    </p>
  </div>
  <div class="item">
    <p class="subItem title">記憶に残る正月の思い出</p>
    <p class="subItem dicription">
      六つばかりの正月(多分)丁度旅順が陥落し、若かった母が、縁側に走り出、泣きながら「万歳!」と叫んだ時...
    </p>
    <p class="subItem caption">
      宮本 百合子
    </p>
  </div>
</div>
              
            
!

CSS

              
                .container {
  /*グリットの指定*/
  display: grid;
  grid-template-columns: repeat(3, 200px);
  gap: 8px 24px;
}

.item {
  /*グリットアイテムを3グリット分の大きさにする*/
  grid-row: span 3;
  /*サブグリットの指定*/
  display: grid;
  grid-template-rows: subgrid;
}


/* 以下スタイル調整用スタイル */
.container {
  background-color: #F9FAFA;
  border: 1px solid rgba(0, 0, 0, 0.12);
  padding: 16px;
}

.item {
  background-color: #E3F7DF;
  border: 1px solid #55c500;
  padding: 16px;
}

.subItem {
  background-color: #FCF0BF;
  border: 1px solid #F7A535;
  padding: 8px;
  margin: 0;
}
              
            
!

JS

              
                
              
            
!
999px

Console