Не могу пройти испытание, в чём пробелема?
html, body { margin: 0; padding: 0; }body {
width: 380px;
min-height: 280px;
padding: 10px;
font-family: “Arial”, sans-serif;
font-size: 14px;
line-height: 1.4;
background: #ecf0f1;
}
.main-menu,
.sub-menu {
list-style: none;
}
.main-menu li {
display: block;
background: #2980b9;
width: 200px;
height: 42px;
position: relative;
border-bottom: 2px solid #2c3e50;
box-sizing: border-box;
padding-left: 15px;
padding-top: 10px;
left: -40px;
}
.main-menu a {
text-decoration: none;
color: white;
}
.main-menu .sub-menu {
position: absolute;
z-index: 100;
left: 180px;
top: 0px;
}
.sub-menu li {
background: #1abc9c;
border-bottom: 2px solid #2ecc71;
}
li.opened {
background: #1abc9c;
}