I have been working on a small. However, I have a table where the cells are all sized automatically by the size of the text in each cell. How would I go about making all the cells the same width? For example, have 10 cells across, with each cell always using up 10% of the table's width.
You can see an JSFiddle of a table where the cells are different widths depending on the text here: https://jsfiddle.net/0sLb8cyo/2/
<table>
<tr>
<td>car</td>
<td>car</td>
<td>car</td>
<td>car</td>
<td>car</td>
<td>car</td>
<td>car</td>
<td>car</td>
<td>car</td>
<td>car</td>
<td>car</td>
<td>car</td>
<td>car</td>
<td>car</td>
<td>car</td>
</tr>
<tr>
<td>car</td>
<td>car</td>
<td>car</td>
<td>boat</td>
<td>boat</td>
<td>boat</td>
<td>boat</td>
<td>boat</td>
<td>boat</td>
<td>car</td>
<td>car</td>
<td>car</td>
<td>car</td>
<td>car</td>
<td>car</td>
</tr>
</table>
Thanks in advance.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…