<!DOCTYPE html>
<html>
<head>
<style>
table {
border-collapse: collapse;
}
table, th, td {
border: 1px solid black;
td {
width: 100px;
height: 20px;
text-align: center;
vertical-align: middle;
.orange {
background-color: orange;
.yellow {
background-color: yellow;
.blue {
background-color: blue;
.purple {
background-color: purple;
.green {
background-color: green;
</style>
</head>
<body>
<table>
<tr>
<td class="orange"></td>
<td class="yellow"></td>
<td class="blue"></td>
<td class="purple"></td>
</tr>
<td class="green"></td>
</table>
</body>
</html>
" Life is not a problem to be solved but a reality to be experienced! "
© Copyright 2013 - 2024 KUDO.TIPS - All rights reserved.
<!DOCTYPE html>
<html>
<head>
<style>
table {
border-collapse: collapse;
}
table, th, td {
border: 1px solid black;
}
td {
width: 100px;
height: 20px;
text-align: center;
vertical-align: middle;
}
.orange {
background-color: orange;
}
.yellow {
background-color: yellow;
}
.blue {
background-color: blue;
}
.purple {
background-color: purple;
}
.green {
background-color: green;
}
</style>
</head>
<body>
<table>
<tr>
<td class="orange"></td>
<td class="yellow"></td>
<td class="blue"></td>
<td class="purple"></td>
</tr>
<tr>
<td class="green"></td>
<td class="orange"></td>
<td class="yellow"></td>
<td class="blue"></td>
</tr>
<tr>
<td class="purple"></td>
<td class="green"></td>
<td class="orange"></td>
<td class="yellow"></td>
</tr>
<tr>
<td class="blue"></td>
<td class="purple"></td>
<td class="green"></td>
<td class="orange"></td>
</tr>
</table>
</body>
</html>