<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Испытание: итоговая таблица</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1>Итоговая таблица</h1>
<table>
<tr>
<th class="darkcyan", style="text-align: left;">Город</th>
<th class="lightblue" style="text-align: center;">Посещений</td>
<th class="darkcyan" style="text-align: right;">%</td>
</tr>
<tr class="white">
<td class="left">СПб</td>
<td class="center">199</td>
<td class="right">65.12</td>
</tr>
<tr class="lightyellow">
<td class="left">Москва</td>
<td class="center">69</td>
<td class="right">21.3</td>
</tr>
<tr class="Kiev">
<td class="left">Киев</td>
<td class="center">5</td>
<td class="right">8</td>
</tr>
<tr class="lightyellow">
<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;
}
tr {
border-bottom: 1px solid lightgrey;
border-top: 1px solid lightgrey;
}
td {
padding: 10px;
}
th {
border-bottom: 1px solid black;
border-top: 1px solid black;
padding: 10px;
color: white;
width: 33%;
}
.darkcyan {
background-color: darkcyan;
}
.lightyellow {
background-color: lightyellow;
}
.lightblue {
background-color: lightblue;
}
.left {
text-align: left;
}
.right {
text-align: right;
}
.center {
text-align: center;
}