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="responsivenew-stacked-table with-mobile-labels">
<thead>
<tr>
<th style="text-align: center;" data-category="Model">Model</th>
<th style="text-align: center;" data-category="Image">Image</th>
<th style="text-align: center;" data-category="Wipes Per Pack">Wipes Per Pack</th>
<th style="text-align: center;" data-category="Hypoallergenic?">Hypoallergenic?</th>
<th style="text-align: center;" data-category="Alcohol Free?">Frangrance Free?</th>
<th style="text-align: center;" data-category="Read Full Review">Read Full Review</th>
<th style="text-align: center;" data-category="Score">Score</th>
<th style="text-align: center;" data-category="Check Price">Check Price</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: center;" data-category="Model">Johnson's Gentle All Over</td>
<td data-category="Image"><img class="wp-image-2347 aligncenter" src="https://www.greatestreviews.co.uk/wp-content/uploads/2017/04/711VVyhGvnL._SL1500_.jpg" alt="Best Baby Wipes" width="150" height="71" /></td>
<td style="text-align: center;" data-category="Wipes Per Pack">56</td>
<td style="text-align: center;" data-category="Frangrance Free?">Yes</td>
<td style="text-align: center;" data-category="Hypoallergenic?">Yes</td>
<td style="text-align: center;" data-category="Read Full Review">Read Full Review</td>
<td style="text-align: center;" data-category="Score">9.2</td>
<td data-category="Check Price"><img class="size-full wp-image-324 aligncenter" src="https://www.greatestreviews.co.uk/wp-content/uploads/2017/01/am1-e1484318196902.png" alt="Best Baby Wipes" width="181" height="61" /></td>
</tr>
<tr>
<td style="text-align: center;" data-category="Model">WaterWipes Chemical Free</td>
<td data-category="Image"><img class="wp-image-2348 aligncenter" src="https://www.greatestreviews.co.uk/wp-content/uploads/2017/04/60-pack-low-res-2015-new-pack.jpg" alt="Best Baby Wipes" width="150" height="79" /></td>
<td style="text-align: center;" data-category="Wipes Per Pack">60</td>
<td style="text-align: center;" data-category="Frangrance Free?">Yes</td>
<td style="text-align: center;" data-category="Hypoallergenic?">Yes</td>
<td style="text-align: center;" data-category="Read Full Review">Read Full Review</td>
<td style="text-align: center;" data-category="Score">9.5</td>
<td style="text-align: center;" data-category="Check Price"><img class="size-full wp-image-324 aligncenter" src="https://www.greatestreviews.co.uk/wp-content/uploads/2017/01/am1-e1484318196902.png" alt="Best Baby Wipes" width="181" height="61" /></td>
</tr>
<tr>
<td style="text-align: center;" data-category="Model">Johnson's Baby Extra Sensitive Fragrance Free Wipes</td>
<td data-category="Image"><img class="wp-image-2351 aligncenter" src="https://www.greatestreviews.co.uk/wp-content/uploads/2017/04/wipes.png" alt="Best Baby Wipes" width="150" height="82" /></td>
<td style="text-align: center;" data-category="Wipes Per Pack">56</td>
<td style="text-align: center;" data-category="Frangrance Free?">Yes</td>
<td style="text-align: center;" data-category="Hypoallergenic?">Yes</td>
<td style="text-align: center;" data-category="Read Full Review">Read Full Review</td>
<td style="text-align: center;" data-category="Score">9.2</td>
<td data-category="Check Price"><img class="size-full wp-image-324 aligncenter" src="https://www.greatestreviews.co.uk/wp-content/uploads/2017/01/am1-e1484318196902.png" alt="Best Baby Wipes" width="181" height="61" /></td>
</tr>
<tr>
<td style="text-align: center;" data-category="Model">Huggies Pure</td>
<td data-category="Image"><img class="wp-image-2354 aligncenter" src="https://www.greatestreviews.co.uk/wp-content/uploads/2017/04/71EjprJg8L._SL1500_.jpg" alt="Best Baby Wipes" width="150" height="83" /></td>
<td style="text-align: center;" data-category="Wipes Per Pack">56</td>
<td style="text-align: center;" data-category="Frangrance Free?">Yes</td>
<td data-category="Hypoallergenic?">9.9</td>
<td style="text-align: center;" data-category="Read Full Review">Read Full Review</td>
<td data-category="Score">9.9</td>
<td data-category="Check Price"></td>
</tr>
<tr>
<td data-category="Model">Jackson Reece Kinder By Nature Unscented Baby Wipes</td>
<td data-category="Image"><img class="wp-image-2361 aligncenter" src="https://www.greatestreviews.co.uk/wp-content/uploads/2017/04/wipes1.jpg" alt="Best Baby Wipes" width="150" height="88" /></td>
<td style="text-align: center;" data-category="Wipes Per Pack">56</td>
<td style="text-align: center;" data-category="Frangrance Free?">Yes</td>
<td data-category="Hypoallergenic?">9.9</td>
<td data-category="Read Full Review">Read Full Review</td>
<td data-category="Score">9.9</td>
<td data-category="Check Price">Yes</td>
</tr>
<tr>
<td data-category="Model">Square</td>
<td data-category="Image">4</td>
<td data-category="Wipes Per Pack">Red</td>
<td style="text-align: center;" data-category="Frangrance Free?">Yes</td>
<td data-category="Hypoallergenic?">9.9</td>
<td data-category="Read Full Review">Read Full Review</td>
<td data-category="Score">9.9</td>
<td data-category="Check Price">Yes</td>
</tr>
</tbody>
</table>
              
            
!

CSS

              
                /* new responsive tables */

.responsivenew-stacked-table {
	width: 100%;
	border: 1px solid #ddd;
	border-collapse: collapse;
	table-layout: fixed;
}
.responsivenew-stacked-table th,
.responsivenew-stacked-table td {
	padding: 10px;
	border-top: 1px solid #ddd;
}
.responsivenew-stacked-table thead {
	background: #eee;
	border-bottom: 3px solid #ddd;
}
.responsivenew-stacked-table tr:nth-child(even) {
	background: #f5f5f5;
}
.responsivenew-stacked-table .fa {
	margin-right: 5px;
}
.responsivenew-stacked-table .fa-check-circle {
	color: #690;
}
.responsivenew-stacked-table .fa-times-circle {
	color: #c00;
}

.responsivenew-stacked-table.with-mobile-labels {
	font-size: .85em;
}

@media (max-width: 1199px) {
	.container {
		width: auto;
		padding: 0 10px;
	}
}

@media (max-width: 767px) {
	.responsivenew-stacked-table thead {
		display: none;
	}
	.responsivenew-stacked-table tr,
	.responsivenew-stacked-table th,
	.responsivenew-stacked-table td {
		display: block;
	}
	.responsivenew-stacked-table td {
		border-top: none;
	}
	.responsivenew-stacked-table tr td:first-child {
		border-top: 1px solid #ddd;
		font-weight: bold;
	}
	.responsivenew-stacked-table.with-mobile-labels tr td:first-child {
		font-weight: 300;
	}
	.responsivenew-stacked-table.with-mobile-labels td:before {
		display: block;
		font-weight: bold;
		content: attr(data-category);
	}
              
            
!

JS

              
                
              
            
!
999px

Console