Вот код html:
<nav class="main-menu">
<ul>
<li><a href="#"><i class="fa fa-home"></i>Main</a></li>
<li><a href="#"><i class="fa fa-home"></i>Kind plant</a></li>
<li><a href="#"><i class="fa fa-home"></i>Places of growth</a>
<ul>
<li><a href="#">Nouth America</a></li>
<li><a href="#">South America</a></li>
<li><a href="#">Europe</a></li>
<li><a href="#">Africa</a></li>
<li><a href="#">Asia</a></li>
<li><a href="#">Australia</a></li>
</ul>
</li>
<li><a href="#"><i class="fa fa-home"></i>Plant History</a></li>
<li><a href="#"><i class="fa fa-home"></i>Environmental issues</a></li>
<li><a href="#"><i class="fa fa-home"></i>Our contacts</a></li>
</ul>
</nav>
Здесь CSS:
body {
background: url(../img/bg-cloud.jpg) no-repeat center;
background-size: 125%;
}
header {
position: relative;
}
header .flora-header {
position: absolute;
right: -4rem;
top: 22rem;
}
header p {
position: fixed;
right: 0rem;
margin-top: 5rem;
margin-right: 2rem;
font-size: 4rem;
font-weight: bold;
color: #6797C9;
text-transform: uppercase;
}
.main-menu {
margin: 0;
padding: 0;
}
.main-menu ul {
padding-left: 5px;
}
.main-menu ul li {
position: relative;
list-style: none;
display: inline-block;
margin-top: 20rem;
padding: 5px;
border: solid 2px #6797C9;
border-radius: 10px;
margin-left: 2px;
background: #FFF;
}
.main-menu ul li a {
font-size: 0.9rem;
color: #6797C9;
font-weight: bold;
text-decoration: none;
text-transform: uppercase;
}
.main-menu ul li i {
margin-right: 5px;
}
.main-menu ul li ul {
position: absolute;
top: 35px;
display: none;
}
.main-menu ul li ul:hover {
display: block;
background: #6797C9;
color: #FFF;
}
.main-menu ul li ul li {
display: block;
margin-left: -12px;
margin-top: 6px;
}
.main-menu li:hover {
background: #6797C9;
color: #FFF;
}
.main-menu li:hover a {
color: #FFF;
}
Весь день потратил на поиск ошибки...