/* start writing all your rules starting with #nav selector */
/* background color for fourth element: #ffd9b3; */
#nav ul li {
float: left;
width:20%;
}
#nav > ul > li:hover > ul:nth-child(2)
{
display: block;
white-space: nowrap;
}
#nav li:hover > ul
{
display: block;
}
#nav ul li:nth-child(2) ul li:nth-child(4) ul
{
position: absolute;top: 159px;
left: 40%;width: auto;
}
#nav ul li:nth-child(4) ul li:nth-child(2) ul
{
position: absolute;top: 80px;
left: 80%;width: auto;
}
#nav li a:nth-child(4)
{
background-color: #ffd9b3;
}
@media only screen and (max-width: 600px) {
#nav li a {
padding: 0px 0px;
}
#nav {
font-size: 10px;
}
#nav li ul a
{
padding: 0px 0px 0px 7px;
}
}