HTML
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="utf-8">
<title>Испытание: вертикальное меню</title>
</head>
<body>
<ul class="vertical-menu">
<li><a href="#kurs">Курсы</a>
<li class="active"><a href="#demo">Демонстрации</a>
<li><a href="#users">Участники</a>
<li><a href="#achivments">Достижения</a>
<li><a href="#profile">Профиль</a>
</body>
</html>
CSS :
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;
}
.vertical-menu {
width: 200px;
padding: 0;
list-style: none;
}
.vertical-menu li {
background: #2980B9;
pa
}
.vertical-menu a {
color: white;
border-bottom: 1px solid black;
display: block;
min-height: 21px;
text-decoration: none;
padding: 10px 15px;
}
.vertical-menu .active a {
background: #1ABC9C;
border-bottom: 2px solid #2ECC71;
}