I'm creating a Table like this, but when I write the HTML, how can I write it in vertical groups (days of the week) instead of horizontal groups (numbers)?
I would appreciate it if you could tell me more about it.
a {
display: block;
width: 100%;
height: 100%;
}
table {
border-collapse: collapse;
}
.table td,
th {
border: solid 1px;
padding: 0.5em;
background: #ffffff;
width: 80px;
}
.table.td.table {
border-color: #ffffff;
}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
</head>
<body>
<table class="table">
<tr>
<td></td>
<th>Monday</th>
<th>Tuesday</th>
<th>Wednesday</th>
<th>Thursday</th>
<th>Friday</th>
<th>Saturday</th>
</tr>
<tr>
<th>1</th>
<td>
<p>Content</p>
</td>
<td>
<p>Content</p>
</td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<th>2</th>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<th>3</th>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<th>4</th>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<th>5</th>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<th>6</th>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</table>
</body>
</html>
The ideal is shown below. I would like to write each day of the week instead of a number.