<h1>Итоговая таблица</h1>
<table>
<tr>
<th class="city">Город</th> <th class="th-visit">Посещений</th> <th class="percent">%</th>
</tr>
<tr>
<td>СПб</td> <td class="visit">199</td> <td class="percent">65.12</td>
</tr>
<tr>
<td class="chosen">Москва</td> <td class="visit chosen">69</td> <td class="percent chosen">21.3</td>
</tr>
<tr>
<td>Киев</td> <td class="visit">5</td> <td class="percent">8</td>
</tr>
<tr>
<td colspan="2" class="chosen">Посещений за весь период</td> <td class="percent chosen">273</td>
</tr>
</table>
body {
width: 350px;
margin: 0;
padding: 0 10px;
font-size: 14px;
font-family: Arial, sans-serif;
}
table {
border-collapse: collapse;
width: 350px;
}
td {
border-bottom: 1px solid lightgray;
padding: 10px;
}
th {
border-top: 1px solid black;
border-bottom: 1px solid black;
padding: 10px;
color: white;
background-color: darkcyan;
width: 33%
}
.visit {
text-align: center;
}
.percent {
text-align: right;
}
.city {
text-align: left;
}
.th-visit {
background-color: lightblue;
}
.chosen {
background-color: lightyellow;
}