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="osare5-table 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

              
                /*** おしゃれテーブル5 ポルカドット ***/
 
.osare5-table {
 width:100%;
 table-layout: fixed;
   border: none !important;
    border-collapse: separate;
    border-spacing: 4px 4px;
}


.osare5-table th {
   border: none !important;
}

.osare5-table tbody td {
	border: none !important;
	background-color:#f0fff0 !important;
	border-bottom: solid 2px #f9f9f9 !important;
	background-image: radial-gradient(white 15%, transparent 16%),
	radial-gradient(white 15%, transparent 16%);
	background-size:30px 30px;
	background-position: 0 0, 15px 15px;

}

/* ヘッダー */
.osare5-table thead th {
	font-weight: bold;
	border-radius: 5px 5px 5px 5px;
	background:#f6f0ff;
}

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


/* フッターデータ(フッターがあるときのみ有効) */
.osare5-hikaku tfoot td {
 border: none !important;
 background:none;
 text-align:center;
 font-weight:600;
 font-size:1em;
}

 
/* ボディデータ */
.osare5-table tbody td {
 text-align:center;
}
 
.osare5-table thead th:first-child  {
	background:none;
}

 
/* 最終行のボーダーをなくす */
.osare5-table tbody tr:last-child th,
.osare5-table tbody tr:last-child td {
 border-bottom:none !important;
}

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

JS

              
                
              
            
!
999px

Console