<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Испытание: итоговая таблица</title>
</head>
<body>
<h1>Итоговая таблица</h1>
<table ">
<tr class="c">
<th class="nu">Город</th>
<th class="pu">Посещений</th>
<th class="ru">%</th>
</tr>
<tr>
<td>СПб</td>
<td class="center">199</td>
<td class="right">65.12</td>
</tr>
<tr class="d">
<td >Москва</td>
<td class="center">69</td>
<td class="right">21.3</td>
</tr>
<tr>
<td>Киев </td>
<td class="center">5</td>
<td class="right">8</td>
</tr>
<tr class="d">
<td colspan="2">Посещений за весь период </td>
<td class="right">273<td>
</tr>
</table>
</body>
</html>
body {
width: 350px;
margin: 0;
padding: 0 10px;
font-size: 14px;
font-family: Arial, sans-serif;
}
table{
border-collapse: collapse;
width:auto;
height:auto;
}
td{
padding:10px;
width:33%;
border-bottom:2px solid lightgray;
}
th{
padding:10px;
width:33%;
border:1px solid;
}
.nu{
color:white;
background-color:darkcyan;
}
.ru{
color:white;
background-color:darkcyan;
text-align:right;
}
.pu{
color:white;
background-color:lightblue;
}
.c{
border:2px solid black;
border-collapse: collapse;
}
.center{
text-align:center;
}
.right{
text-align:right;
}
.d{
background-color:lightyellow;
}
<img src="/uploads/default/original/2X/d/dba9b77be50004a369beb376d4b5e1074d5cc86a.PNG" width="422" height="274">
</></>