A Pen by Chris

Thumbnail
This awesome code was written by cinman, you can see more from this user in the personal repository.
You can find the original code on Codepen.io
Copyright cinman ©
  • HTML
  • CSS
  • JavaScript
    <table>
	<thead>
		<tr>
			<th>Product/Service</th>
			<th>Label</th>
			<th>Staff</th>
			<th>Qty</th>
			<th>Unit Price (Ecx)</th>
			<th>Price (Ecx)</th>
			<th>Price (Inc)</th>
		</tr>
	</thead>
	<tbody>
		<tr>
			<td>Product</td>
			<td>Label</td>
			<td>Staff</td>
			<td>1.000</td>
			<td>000.00</td>
			<td>000.00</td>
			<td>000.00</td>
		</tr>
	</tbody>
</table>

/*Downloaded from https://www.codeseek.co/cinman/a-pen-by-chris-boQNZY */
    body {
	font-family: helvetica;
}

table {
	width: 100%;
	table-layout: fixed;
	border-collapse: collapse;
	border: 1px solid #000;
}

thead {
	background-color: #ccc;
}

th {
	word-wrap:nowrap;
	text-align: left;
	font-size: 13px;
}

th, td {
	border: 1px solid;
	padding: 5px;
}


th:nth-child(3) {
	width: 175px;
}
th:nth-child(4) {
	background-color: orange;
	width: 50px;
	text-align: center;
}
th:nth-child(5) {
	background-color: orange;
	width: 100px;
	text-align: center;
}
th:nth-child(6), th:nth-child(7) {
	background-color: orange;
	width: 80px;
	text-align: center;
}

td:nth-child(5), td:nth-child(6), td:nth-child(7) {
	text-align: right;
}


/*Downloaded from https://www.codeseek.co/cinman/a-pen-by-chris-boQNZY */
    

Comments