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 is required to process package imports. If you need a different preprocessor remove all packages first.

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

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

              
                <div class="container">
  <h3>列を垂直方向上揃え、align-items-startクラスを指定した例</h3>
  <div class="row align-items-start">
    <div class="col">
     3つの列の1列目
    </div>
    <div class="col">
     3つの列の2列目
    </div>
    <div class="col">
     3つの列の3列目
    </div>
  </div>
  
  <h3>列を垂直方向中央揃え、align-items-centerクラスを指定した例</h3>
  <div class="row align-items-center">
    <div class="col">
     3つの列の1列目
    </div>
    <div class="col">
     3つの列の2列目
    </div>
    <div class="col">
     3つの列の3列目
    </div>
  </div>
  
  <h3>列を垂直方向下揃え、align-item-endクラスを指定した例</h3>
  <div class="row align-items-end">
    <div class="col">
     3つの列の1列目
    </div>
    <div class="col">
     3つの列の2列目
    </div>
    <div class="col">
     3つの列の3列目
    </div>
  </div>
  
  <h3>高さ自動調整、align-item-strechクラスを指定した例</h3>
  <div class="row align-items-strech">
    <div class="col h100">
     3つの列の1列目<br>
     高さ100px指定
    </div>
    <div class="col">
     3つの列の2列目<br>
     高さの指定なし
    </div>
    <div class="col h250">
     3つの列の3列目<br>
     高さ250px指定
    </div>
  </div>
</div>
              
            
!

CSS

              
                .row > [class*=col] {
    padding-top: .75rem;
    padding-bottom: .75rem;
    background-color: rgba(86,61,124,.15);
    border: 1px solid rgba(86,61,124,.2);
}
.row {
   min-height: 7rem;
   background-color: rgba(255,0,0,.1);
}

h3 {
  margin-top: 1rem;
  text-align: center;
}

.h100 {
  height: 80px;
}
.h250 {
  height: 250px;
}
              
            
!

JS

              
                
              
            
!
999px

Console