<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="utf-8">
<title>Испытание: вертикальное меню</title>
</head>
<body>
<nav>
<ul class="navigation">
<li><a href="#">Курсы</a></li>
<li class="active"><a href="#">Демонстрации</a></li>
<li><a href="#">Участники</a></li>
<li><a href="#">Достижения</a></li>
<li><a href="#">Профиль</a></li>
</ul>
</nav>
</body>
</html>
html,
body {
margin: 0;
padding: 0;
}
body {
width: 280px;
min-height: 280px;
padding: 10px;
font-family: “Arial”, sans-serif;
font-size: 14px;
line-height: 1.4;
background: #ecf0f1;
}
.navigation {
padding: 0;
width: 200px;
}
.navigation li {
list-style: none;
}
.navigation a {
display: block;
padding: 10px 15px;
color: #fff;
text-decoration: none;
border-bottom: 2px solid #2c3e50;
background-color: #2980b9;
}
.navigation .active a {
background-color: #1abc9c;
border-bottom: 2px solid #2ecc71;
}