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