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