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