28/28 100% Оцените

html,
body {
margin: 0;
padding: 0;
}

body {
width: 380px;
min-height: 280px;
padding: 10px;
font-size: 14px;
line-height: 1.4;
font-family: “Arial”, sans-serif;
background-color: #ecf0f1;
}

.main-menu {
width: 200px;
margin: 0;
padding: 0;
list-style: none;
}

.main-menu > li {
border-bottom: 2px solid #2c3e50;
background-color: #2980b9;
}

.main-menu a {
position: relative;
display: block;
padding: 10px 15px;
text-decoration: none;
color: #fff;
}

.sub-menu {
position: absolute;
padding: 0;
width: 200px;
}

.open > a {
background-color: #1abc9c;
}

.main-menu > li {
position: relative;
display: block;
}

.main-menu .sub-menu {
position: absolute;
top: 0;
left: 180px;
z-index: 5;
list-style: none;
background-color: #1abc9c;
}

.main-menu .sub-menu a {
border-bottom: 2px solid #2ecc71;
}