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 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

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

              
                <table class="osare-table osare-hikaku col5t">
<tfoot>
<tr>
<th>Price</th>
<td>100yen</td>
<td>200yen</td>
<td>200yen</td>
<td>200yen</td>
</tr>
</tfoot>
<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>100</td>
<td>90</td>
<td>80</td>
<td>70</td>
</tr>
<tr>
<th>property3</th>
<td>100</td>
<td>90</td>
<td>80</td>
<td>70</td>
</tr>
<tr>
<th>property4</th>
<td>100</td>
<td>90</td>
<td>80</td>
<td>70</td>
</tr>
</tbody>
</table>
              
            
!

CSS

              
                /*** おしゃれテーブル1 パステルカラー ***/
 
.osare-table {
 width:100%;
 table-layout: fixed;
 border: none !important;
 border-collapse: separate;
 border-spacing: 7px 0px;
}
 
.osare-table th {
 border: none !important;
}
 
.osare-table tbody td {
   border: none !important;
  background-color:#FFF9FF !important;
  border-bottom: solid 2px #f9f9f9 !important;
}
 
/* ヘッダー */
.osare-table thead th {
 font-weight: bold;
 border-radius: 10px 10px 0px 0px;
}

/* フッター(比較表と色つけたとき用) */
.osare-table tfoot td {
 border:none;
 border-radius: 0 0 10px 10px;
}
 
 
/* ボディ項目 */
.osare-table tbody th {
 background:#f2f5fc;
 font-weight: bold;
 border-bottom: solid 2px #f9f9f9 !important;
 line-height:4.5em;
}
 
/* フッター項目 */
.osare-table tfoot th {
 background:none;
 line-height:3em;
 font-weight: bold;
}


 
/* ボディデータ */
.osare-table tbody td {
 text-align:center;
}
 
/* ヘッダー行 1列ごとの色変え */
.osare-table thead th:nth-child(1)  {
 background:#81d4fa;
}

.osare-table thead th:nth-child(2)  {
 background: #FFBCFF;
}
.osare-table thead th:nth-child(3)  {
 background: #FFFFB2;
}
.osare-table thead th:nth-child(4)  {
 background: #C4FF89;
}
.osare-table thead th:nth-child(5)  {
 background: #FFB2D8;
}
 
/* 最終行のボーダーをなくす */
.osare-table tbody tr:last-child th,
.osare-table tbody tr:last-child td {
 border-bottom:none !important;
}


/* スマホ調整 */
@media (max-width: 767px) {
	.osare-table thead th,
	.osare-table tbody th {
			padding:0;
	}
	.osare-table tfoot td {
	padding:0;
	font-size:0.9em;
	}
.osare-table tfoot td:nth-child(2) {
	 font-size:1em;
	}
	
}


/*** おしゃれテーブル比較用 ***/
/* おすすめ商品枠 */
.osare-hikaku thead th:nth-child(2)  {
	border-top:solid 3px #f8bbd0 !important;
	border-left:solid 3px #f8bbd0 !important;
	border-right:solid 3px #f8bbd0 !important;
}
.osare-hikaku  td:nth-child(2)  {
	border-left:solid 3px #f8bbd0 !important;
	border-right:solid 3px #f8bbd0 !important;
}
.osare-hikaku tfoot td:nth-child(2)  {
	border-bottom:solid 3px #f8bbd0 !important;
	border-left:solid 3px #f8bbd0 !important;
	border-right:solid 3px #f8bbd0 !important;
}


/*(共通) 項目の多いテーブルの幅を調整*/
@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