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="horizontal">
  <table>
    <thead>
      <tr>
        <th></th><th>列見出し1</th><th>列見出し2</th><th>列見出し3</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <th>行見出し1</th><td>セル1</td><td>セル2</td><td>セル3</td>
      </tr>
      <tr>
        <th>行見出し2</th><td>セル4</td><td>セル5</td><td>セル6</td>
      </tr>
    </tbody>
  </table>
</div>

<!-- 縦書きを指定した表 -->
<div class="vertical">
  <table>
    <thead>
      <tr>
        <th></th><th>列見出し1</th><th>列見出し2</th><th>列見出し3</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <th>行見出し1</th><td>セル1</td><td>セル2</td><td>セル3</td>
      </tr>
      <tr>
        <th>行見出し2</th><td>セル4</td><td>セル5</td><td>セル6</td>
      </tr>
    </tbody>
  </table>
</div>

              
            
!

CSS

              
                .horizontal {
  display: inline-block;
  margin: 10px;
}
.vertical{
  display: inline-block;
  -webkit-writing-mode: vertical-rl;
      -ms-writing-mode: tb-rl;
          writing-mode: vertical-rl; /* 縦書きにする */
  text-orientation: upright; /* 横文字を正立させる(IE,Edge非対応) */
  margin: 10px;
}


/* 表のCSS */
thead tr th {
  background-color: rgb(91,189,206);
  color: #fff;
}
tbody {
  background-color: rgb(213,255,236);  
}
th {
  background-color: rgb(255,196,226);
  padding: 10px;
  text-align: center; 
}
td {
  padding: 10px;
  text-align: center;
}
              
            
!

JS

              
                
              
            
!
999px

Console