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

              
                <div class="container">
	<table>
		<tr>
			<th></th>
			<th>SALES</th>
			<th>PROFIT</th>
			<th></th>
		</tr>
		
		<tr>
			<td>January</td>
			<td>$100,00.00</td>
			<td>$20,000.00</td>
			<td></td>
		</tr>
		
		<tr>
			<td>February</td>
			<td>$100,00.00</td>
			<td>$20,000.00</td>
			<td></td>
		</tr>
		
		<tr>
			<td>March</td>
			<td>$100,00.00</td>
			<td>$20,000.00</td>
			<td></td>
		</tr>
		
		<tr>
			<td>April</td>
			<td>$100,00.00</td>
			<td>$20,000.00</td>
			<td></td>
		</tr>
		
		<tr>
			<td>May</td>
			<td>$100,00.00</td>
			<td>$20,000.00</td>
			<td></td>
		</tr>
		
		<tr>
			<td>June</td>
			<td>$100,00.00</td>
			<td>$20,000.00</td>
			<td></td>
		</tr>
		
		<tr>
			<td>July</td>
			<td>$100,00.00</td>
			<td>$20,000.00</td>
			<td></td>
		</tr>
		
		<tr>
			<td>August</td>
			<td>$100,00.00</td>
			<td>$20,000.00</td>
			<td></td>
		</tr>
		
		<tr>
			<td>September</td>
			<td>$100,00.00</td>
			<td>$20,000.00</td>
			<td></td>
		</tr>
		
		<tr>
			<td>October</td>
			<td>$100,00.00</td>
			<td>$20,000.00</td>
			<td></td>
		</tr>
		
		<tr>
			<td>November</td>
			<td>$100,00.00</td>
			<td>$20,000.00</td>
			<td></td>
		</tr>
		
		<tr>
			<td>December</td>
			<td>$100,00.00</td>
			<td>$20,000.00</td>
			<td></td>
		</tr>
		
		<tfoot>
			<tr>
				<td></td>
				<td>$1,200,000.00</td>
				<td>$240,000.00</td>
				<td></td>
			</tr>
		</tfoot>
	</table>
</div>
              
            
!

CSS

              
                body
	font-family: Courier
	font-size: 15px

.container
	display: flex
	align-items: center
	justify-content: center
	height: 90vh
	width: 90vw

table
	border-collapse: collapse

tr:nth-child(odd)
	background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAADCAYAAABWKLW/AAAAHUlEQVQYV2NkgIK3b9/+ZwSxQQxhYWFGRhgDJAgA4hULytmCFnsAAAAASUVORK5CYII=)
tr:first-child
	background: none
th
	padding-right: 5px
	text-align: right
th:first-child
	border-right: 1px solid #f1f1f1
th:nth-child(3)
	padding-right: 40px
	border-right: 1px solid #f1f1f1

td
	font-style: italic
	color: #666
	border-top: 1px solid #ddd
	border-bottom: 1px solid #ddd
	padding: 3px 5px 3px 40px
	text-align: right
td:first-child
	border-color: #f1f1f1
	border-right: 1px solid #ddd
	background: white
td:nth-child(3)
	padding-right: 40px
td:last-child
	padding-right: 40px
	border-color: #f1f1f1
	border-left: 1px solid #ddd
	background: white

tfoot td
	border-bottom: none
	color: black
	font-weight: bold
tfoot td:last-child
	border-color: #f1f1f1
tfoot td:first-child
	border-color: #f1f1f1
              
            
!

JS

              
                
              
            
!
999px

Console