Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Reference</title>
<style>
table { border-spacing: 0; padding: 0; border: none; }
td { border: none; padding: 0; }
td { width: 1.2em; height: 1.2em; }
</style>
<body>
<p>The following table should have four matching rows changing (in 5 steps) from red at the left to black at the right: (plus a checkerboard at both ends to show where the rows are):</p>
<div style="background: black">
<table border="border">
<tr>
<td style="background: black"> </td>
<td style="background: rgb(255, 0, 0)"> </td>
<td style="background: rgb(204, 0, 0)"> </td>
<td style="background: rgb(153, 0, 0)"> </td>
<td style="background: rgb(102, 0, 0)"> </td>
<td style="background: rgb(51, 0, 0)"> </td>
<td style="background: rgb(0, 0, 0)"> </td>
<td style="background: white"> </td>
</tr>
<tr>
<td style="background: white"> </td>
<td style="background: rgb(255, 0, 0)"> </td>
<td style="background: rgb(204, 0, 0)"> </td>
<td style="background: rgb(153, 0, 0)"> </td>
<td style="background: rgb(102, 0, 0)"> </td>
<td style="background: rgb(51, 0, 0)"> </td>
<td style="background: rgb(0, 0, 0)"> </td>
<td style="background: black"> </td>
</tr>
<tr>
<td style="background: black"> </td>
<td style="background: rgb(255, 0, 0)"> </td>
<td style="background: rgb(204, 0, 0)"> </td>
<td style="background: rgb(153, 0, 0)"> </td>
<td style="background: rgb(102, 0, 0)"> </td>
<td style="background: rgb(51, 0, 0)"> </td>
<td style="background: rgb(0, 0, 0)"> </td>
<td style="background: white"> </td>
</tr>
<tr>
<td style="background: white"> </td>
<td style="background: rgb(255, 0, 0)"> </td>
<td style="background: rgb(204, 0, 0)"> </td>
<td style="background: rgb(153, 0, 0)"> </td>
<td style="background: rgb(102, 0, 0)"> </td>
<td style="background: rgb(51, 0, 0)"> </td>
<td style="background: rgb(0, 0, 0)"> </td>
<td style="background: black"> </td>
</tr>
</table>
</div>
<p>The following table should have four matching rows changing (in 5 steps) from red at the left to white at the right: (plus a checkerboard at both ends to show where the rows are):</p>
<div style="background: white">
<table border="border">
<tr>
<td style="background: black"> </td>
<td style="background: rgb(255, 0, 0)"> </td>
<td style="background: rgb(255, 51, 51)"> </td>
<td style="background: rgb(255, 102, 102)"> </td>
<td style="background: rgb(255, 153, 153)"> </td>
<td style="background: rgb(255, 204, 204)"> </td>
<td style="background: rgb(255, 255, 255)"> </td>
<td style="background: white"> </td>
</tr>
<tr>
<td style="background: white"> </td>
<td style="background: rgb(255, 0, 0)"> </td>
<td style="background: rgb(255, 51, 51)"> </td>
<td style="background: rgb(255, 102, 102)"> </td>
<td style="background: rgb(255, 153, 153)"> </td>
<td style="background: rgb(255, 204, 204)"> </td>
<td style="background: rgb(255, 255, 255)"> </td>
<td style="background: black"> </td>
</tr>
<tr>
<td style="background: black"> </td>
<td style="background: rgb(255, 0, 0)"> </td>
<td style="background: rgb(255, 51, 51)"> </td>
<td style="background: rgb(255, 102, 102)"> </td>
<td style="background: rgb(255, 153, 153)"> </td>
<td style="background: rgb(255, 204, 204)"> </td>
<td style="background: rgb(255, 255, 255)"> </td>
<td style="background: white"> </td>
</tr>
<tr>
<td style="background: white"> </td>
<td style="background: rgb(255, 0, 0)"> </td>
<td style="background: rgb(255, 51, 51)"> </td>
<td style="background: rgb(255, 102, 102)"> </td>
<td style="background: rgb(255, 153, 153)"> </td>
<td style="background: rgb(255, 204, 204)"> </td>
<td style="background: rgb(255, 255, 255)"> </td>
<td style="background: black"> </td>
</tr>
</table>
</div>
<p>The following table should have four matching rows changing (in 5 steps) from green at the left to black at the right: (plus a checkerboard at both ends to show where the rows are):</p>
<div style="background: black">
<table border="border">
<tr>
<td style="background: black"> </td>
<td style="background: rgb(0, 255, 0)"> </td>
<td style="background: rgb(0, 204, 0)"> </td>
<td style="background: rgb(0, 153, 0)"> </td>
<td style="background: rgb(0, 102, 0)"> </td>
<td style="background: rgb(0, 51, 0)"> </td>
<td style="background: rgb(0, 0, 0)"> </td>
<td style="background: white"> </td>
</tr>
<tr>
<td style="background: white"> </td>
<td style="background: rgb(0, 255, 0)"> </td>
<td style="background: rgb(0, 204, 0)"> </td>
<td style="background: rgb(0, 153, 0)"> </td>
<td style="background: rgb(0, 102, 0)"> </td>
<td style="background: rgb(0, 51, 0)"> </td>
<td style="background: rgb(0, 0, 0)"> </td>
<td style="background: black"> </td>
</tr>
<tr>
<td style="background: black"> </td>
<td style="background: rgb(0, 255, 0)"> </td>
<td style="background: rgb(0, 204, 0)"> </td>
<td style="background: rgb(0, 153, 0)"> </td>
<td style="background: rgb(0, 102, 0)"> </td>
<td style="background: rgb(0, 51, 0)"> </td>
<td style="background: rgb(0, 0, 0)"> </td>
<td style="background: white"> </td>
</tr>
<tr>
<td style="background: white"> </td>
<td style="background: rgb(0, 255, 0)"> </td>
<td style="background: rgb(0, 204, 0)"> </td>
<td style="background: rgb(0, 153, 0)"> </td>
<td style="background: rgb(0, 102, 0)"> </td>
<td style="background: rgb(0, 51, 0)"> </td>
<td style="background: rgb(0, 0, 0)"> </td>
<td style="background: black"> </td>
</tr>
</table>
</div>
<p>The following table should have four matching rows changing (in 5 steps) from green at the left to white at the right: (plus a checkerboard at both ends to show where the rows are):</p>
<div style="background: white">
<table border="border">
<tr>
<td style="background: black"> </td>
<td style="background: rgb(0, 255, 0)"> </td>
<td style="background: rgb(51, 255, 51)"> </td>
<td style="background: rgb(102, 255, 102)"> </td>
<td style="background: rgb(153, 255, 153)"> </td>
<td style="background: rgb(204, 255, 204)"> </td>
<td style="background: rgb(255, 255, 255)"> </td>
<td style="background: white"> </td>
</tr>
<tr>
<td style="background: white"> </td>
<td style="background: rgb(0, 255, 0)"> </td>
<td style="background: rgb(51, 255, 51)"> </td>
<td style="background: rgb(102, 255, 102)"> </td>
<td style="background: rgb(153, 255, 153)"> </td>
<td style="background: rgb(204, 255, 204)"> </td>
<td style="background: rgb(255, 255, 255)"> </td>
<td style="background: black"> </td>
</tr>
<tr>
<td style="background: black"> </td>
<td style="background: rgb(0, 255, 0)"> </td>
<td style="background: rgb(51, 255, 51)"> </td>
<td style="background: rgb(102, 255, 102)"> </td>
<td style="background: rgb(153, 255, 153)"> </td>
<td style="background: rgb(204, 255, 204)"> </td>
<td style="background: rgb(255, 255, 255)"> </td>
<td style="background: white"> </td>
</tr>
<tr>
<td style="background: white"> </td>
<td style="background: rgb(0, 255, 0)"> </td>
<td style="background: rgb(51, 255, 51)"> </td>
<td style="background: rgb(102, 255, 102)"> </td>
<td style="background: rgb(153, 255, 153)"> </td>
<td style="background: rgb(204, 255, 204)"> </td>
<td style="background: rgb(255, 255, 255)"> </td>
<td style="background: black"> </td>
</tr>
</table>
</div>
<p>The following table should have four matching rows changing (in 5 steps) from blue at the left to black at the right: (plus a checkerboard at both ends to show where the rows are):</p>
<div style="background: black">
<table border="border">
<tr>
<td style="background: black"> </td>
<td style="background: rgb(0, 0, 255)"> </td>
<td style="background: rgb(0, 0, 204)"> </td>
<td style="background: rgb(0, 0, 153)"> </td>
<td style="background: rgb(0, 0, 102)"> </td>
<td style="background: rgb(0, 0, 51)"> </td>
<td style="background: rgb(0, 0, 0)"> </td>
<td style="background: white"> </td>
</tr>
<tr>
<td style="background: white"> </td>
<td style="background: rgb(0, 0, 255)"> </td>
<td style="background: rgb(0, 0, 204)"> </td>
<td style="background: rgb(0, 0, 153)"> </td>
<td style="background: rgb(0, 0, 102)"> </td>
<td style="background: rgb(0, 0, 51)"> </td>
<td style="background: rgb(0, 0, 0)"> </td>
<td style="background: black"> </td>
</tr>
<tr>
<td style="background: black"> </td>
<td style="background: rgb(0, 0, 255)"> </td>
<td style="background: rgb(0, 0, 204)"> </td>
<td style="background: rgb(0, 0, 153)"> </td>
<td style="background: rgb(0, 0, 102)"> </td>
<td style="background: rgb(0, 0, 51)"> </td>
<td style="background: rgb(0, 0, 0)"> </td>
<td style="background: white"> </td>
</tr>
<tr>
<td style="background: white"> </td>
<td style="background: rgb(0, 0, 255)"> </td>
<td style="background: rgb(0, 0, 204)"> </td>
<td style="background: rgb(0, 0, 153)"> </td>
<td style="background: rgb(0, 0, 102)"> </td>
<td style="background: rgb(0, 0, 51)"> </td>
<td style="background: rgb(0, 0, 0)"> </td>
<td style="background: black"> </td>
</tr>
</table>
</div>
<p>The following table should have four matching rows changing (in 5 steps) from blue at the left to white at the right: (plus a checkerboard at both ends to show where the rows are):</p>
<div style="background: white">
<table border="border">
<tr>
<td style="background: black"> </td>
<td style="background: rgb(0, 0, 255)"> </td>
<td style="background: rgb(51, 51, 255)"> </td>
<td style="background: rgb(102, 102, 255)"> </td>
<td style="background: rgb(153, 153, 255)"> </td>
<td style="background: rgb(204, 204, 255)"> </td>
<td style="background: rgb(255, 255, 255)"> </td>
<td style="background: white"> </td>
</tr>
<tr>
<td style="background: white"> </td>
<td style="background: rgb(0, 0, 255)"> </td>
<td style="background: rgb(51, 51, 255)"> </td>
<td style="background: rgb(102, 102, 255)"> </td>
<td style="background: rgb(153, 153, 255)"> </td>
<td style="background: rgb(204, 204, 255)"> </td>
<td style="background: rgb(255, 255, 255)"> </td>
<td style="background: black"> </td>
</tr>
<tr>
<td style="background: black"> </td>
<td style="background: rgb(0, 0, 255)"> </td>
<td style="background: rgb(51, 51, 255)"> </td>
<td style="background: rgb(102, 102, 255)"> </td>
<td style="background: rgb(153, 153, 255)"> </td>
<td style="background: rgb(204, 204, 255)"> </td>
<td style="background: rgb(255, 255, 255)"> </td>
<td style="background: white"> </td>
</tr>
<tr>
<td style="background: white"> </td>
<td style="background: rgb(0, 0, 255)"> </td>
<td style="background: rgb(51, 51, 255)"> </td>
<td style="background: rgb(102, 102, 255)"> </td>
<td style="background: rgb(153, 153, 255)"> </td>
<td style="background: rgb(204, 204, 255)"> </td>
<td style="background: rgb(255, 255, 255)"> </td>
<td style="background: black"> </td>
</tr>
</table>
</div>
<p>The following table should have four matching rows changing (in 5 steps) from red at the left to green at the right: (plus a checkerboard at both ends to show where the rows are):</p>
<div style="background: lime">
<table border="border">
<tr>
<td style="background: black"> </td>
<td style="background: rgb(255, 0, 0)"> </td>
<td style="background: rgb(204, 51, 0)"> </td>
<td style="background: rgb(153, 102, 0)"> </td>
<td style="background: rgb(102, 153, 0)"> </td>
<td style="background: rgb(51, 204, 0)"> </td>
<td style="background: rgb(0, 255, 0)"> </td>
<td style="background: white"> </td>
</tr>
<tr>
<td style="background: white"> </td>
<td style="background: rgb(255, 0, 0)"> </td>
<td style="background: rgb(204, 51, 0)"> </td>
<td style="background: rgb(153, 102, 0)"> </td>
<td style="background: rgb(102, 153, 0)"> </td>
<td style="background: rgb(51, 204, 0)"> </td>
<td style="background: rgb(0, 255, 0)"> </td>
<td style="background: black"> </td>
</tr>
<tr>
<td style="background: black"> </td>
<td style="background: rgb(255, 0, 0)"> </td>
<td style="background: rgb(204, 51, 0)"> </td>
<td style="background: rgb(153, 102, 0)"> </td>
<td style="background: rgb(102, 153, 0)"> </td>
<td style="background: rgb(51, 204, 0)"> </td>
<td style="background: rgb(0, 255, 0)"> </td>
<td style="background: white"> </td>
</tr>
<tr>
<td style="background: white"> </td>
<td style="background: rgb(255, 0, 0)"> </td>
<td style="background: rgb(204, 51, 0)"> </td>
<td style="background: rgb(153, 102, 0)"> </td>
<td style="background: rgb(102, 153, 0)"> </td>
<td style="background: rgb(51, 204, 0)"> </td>
<td style="background: rgb(0, 255, 0)"> </td>
<td style="background: black"> </td>
</tr>
</table>
</div>
<p>The following table should have four matching rows changing (in 5 steps) from green at the left to blue at the right: (plus a checkerboard at both ends to show where the rows are):</p>
<div style="background: blue">
<table border="border">
<tr>
<td style="background: black"> </td>
<td style="background: rgb(0, 255, 0)"> </td>
<td style="background: rgb(0, 204, 51)"> </td>
<td style="background: rgb(0, 153, 102)"> </td>
<td style="background: rgb(0, 102, 153)"> </td>
<td style="background: rgb(0, 51, 204)"> </td>
<td style="background: rgb(0, 0, 255)"> </td>
<td style="background: white"> </td>
</tr>
<tr>
<td style="background: white"> </td>
<td style="background: rgb(0, 255, 0)"> </td>
<td style="background: rgb(0, 204, 51)"> </td>
<td style="background: rgb(0, 153, 102)"> </td>
<td style="background: rgb(0, 102, 153)"> </td>
<td style="background: rgb(0, 51, 204)"> </td>
<td style="background: rgb(0, 0, 255)"> </td>
<td style="background: black"> </td>
</tr>
<tr>
<td style="background: black"> </td>
<td style="background: rgb(0, 255, 0)"> </td>
<td style="background: rgb(0, 204, 51)"> </td>
<td style="background: rgb(0, 153, 102)"> </td>
<td style="background: rgb(0, 102, 153)"> </td>
<td style="background: rgb(0, 51, 204)"> </td>
<td style="background: rgb(0, 0, 255)"> </td>
<td style="background: white"> </td>
</tr>
<tr>
<td style="background: white"> </td>
<td style="background: rgb(0, 255, 0)"> </td>
<td style="background: rgb(0, 204, 51)"> </td>
<td style="background: rgb(0, 153, 102)"> </td>
<td style="background: rgb(0, 102, 153)"> </td>
<td style="background: rgb(0, 51, 204)"> </td>
<td style="background: rgb(0, 0, 255)"> </td>
<td style="background: black"> </td>
</tr>
</table>
</div>
<p>The following table should have four matching rows changing (in 5 steps) from blue at the left to red at the right (plus a checkerboard at both ends to show where the rows are):</p>
<div style="background: red">
<table border="border">
<tr>
<td style="background: black"> </td>
<td style="background: rgb(0, 0, 255)"> </td>
<td style="background: rgb(51, 0, 204)"> </td>
<td style="background: rgb(102, 0, 153)"> </td>
<td style="background: rgb(153, 0, 102)"> </td>
<td style="background: rgb(204, 0, 51)"> </td>
<td style="background: rgb(255, 0, 0)"> </td>
<td style="background: white"> </td>
</tr>
<tr>
<td style="background: white"> </td>
<td style="background: rgb(0, 0, 255)"> </td>
<td style="background: rgb(51, 0, 204)"> </td>
<td style="background: rgb(102, 0, 153)"> </td>
<td style="background: rgb(153, 0, 102)"> </td>
<td style="background: rgb(204, 0, 51)"> </td>
<td style="background: rgb(255, 0, 0)"> </td>
<td style="background: black"> </td>
</tr>
<tr>
<td style="background: black"> </td>
<td style="background: rgb(0, 0, 255)"> </td>
<td style="background: rgb(51, 0, 204)"> </td>
<td style="background: rgb(102, 0, 153)"> </td>
<td style="background: rgb(153, 0, 102)"> </td>
<td style="background: rgb(204, 0, 51)"> </td>
<td style="background: rgb(255, 0, 0)"> </td>
<td style="background: white"> </td>
</tr>
<tr>
<td style="background: white"> </td>
<td style="background: rgb(0, 0, 255)"> </td>
<td style="background: rgb(51, 0, 204)"> </td>
<td style="background: rgb(102, 0, 153)"> </td>
<td style="background: rgb(153, 0, 102)"> </td>
<td style="background: rgb(204, 0, 51)"> </td>
<td style="background: rgb(255, 0, 0)"> </td>
<td style="background: black"> </td>
</tr>
</table>
</div>
</body>