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

              
                <table class="osare4-table col4t">
<thead>
<tr>
<th></th>
<th>Goods1</th>
<th>Goods2</th>
<th>Goods3</th>
<th>Goods4</th>
</tr>
</thead>
<tbody>
<tr>
<th>property1</th>
<td>100</td>
<td>90</td>
<td>80</td>
<td>70</td>
</tr>
<tr>
<th>property2</th>
<td>text</td>
<td>text</td>
<td>text</td>
<td>text</td>
</tr>
<tr>
<th>property3</th>
<td>text</td>
<td>text</td>
<td>text</td>
<td>text</td>
</tr>
<tr>
<th>property4</th>
<td>text</td>
<td>text</td>
<td>text</td>
<td>text</td>
</tr>
</tbody>
</table>
              
            
!

CSS

              
                /*** おしゃれテーブル4 マゼンダカラー ***/
.osare4-table {
 width:100%;
 border-collapse: separate; 
 border: none;
 border-spacing: 0px 10px ;
}

.osare4-table tbody td, 
.osare4-table tfoot td {
 text-align: center;
}

/* 上部ヘッダー(背景:パステルカラー) */
.osare4-table thead th {
 color: #FFF; 
 font-weight: bold;
 background:#E91E63;
}

/* 上部ヘッダーの丸み */
.osare4-table thead th:nth-child(2) {
 border-radius: 10px 0 0 0;
}
.osare4-table thead th:last-child  {
 border-radius: 0 10px  0 0;
}

.osare4-table th,
.osare4-table td {
 border: 0 none !important;
}

/* 1行ずつ色変更 不要なら削除 even:奇数行 odd:偶数行 */
.osare4-table tr:nth-child(even) td { 
 background: #fff9fc; 
} 
.osare4-table tr:nth-child(odd) td {
 background: #fff9ff; 
}

/* ヘッダーセル先頭・ボディ項目・フッター項目 */
.osare4-table tbody th,
.osare4-table tfoot th,
.osare4-table thead th:first-child {
 background:none;
 color:#666;
 font-weight: bold;
 line-height:4.5em;
 text-align:right;
}


/*(共通) 項目の多いテーブルの幅を調整*/
@media (max-width: 767px) {
 .col6t th,
 .col6t td{
 font-size:0.4em;
 padding: 10px 0px;
 }
 .col5t th,
 .col5t td{
 font-size:0.5em;
 padding: 10px 0px;
 }
 .col4t th,
 .col4t td{
 font-size:0.7em;
 padding: 10px 5px;
 }
 .col3t th,
 .col3t td{
 font-size:0.8em;
 padding: 10px 10px;
 }
}
              
            
!

JS

              
                
              
            
!
999px

Console