Здравствуйте. Правильное решение? Показывает 100%.
<ul class="menu">
<li>Курсы</li>
<li class="active"><a href="">Демонстрации</a></li>
<li>Участники</li>
<li>Достижения</li>
<li>Профиль</li>
</ul>
</body>
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;
}
.menu
{
width: 200px;
padding-left: 0px;
}
.menu li
{
display: block;
list-style: none;
color: white;
background: #2980b9;
border-bottom: 2px solid #2c3e50;
padding: 10px 15px;
}
.menu .active
{
border-bottom: 2px solid #2ecc71;
background: #1abc9c;
}
.menu .active a
{
color: white;
text-decoration: none;
}