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 {
width: 200px;
background-color: #2980b9;
padding: 0;
margin: 0;
list-style: none;
}
.main-menu a {
display: block;
padding: 10px 15px;
border-bottom: 2px solid #2c3e50;
text-decoration: none;
color: #ffffff;
}
.main-menu > li {
position: relative;
}
.main-menu > .open > a {
background-color: #1abc9c;
}
.main-menu .opened a {
background-color: #1abc9c;
}
.main-menu .sub-menu a {
border-bottom: 2px solid #2ecc71;
}
.main-menu .sub-menu {
position: absolute;
width: 200px;
background-color: #1abc9c;
top: 0;
left: 180px;
list-style: none;
padding: 0;
margin: 0;
z-index: 10;
}