I made a basic website header and the respective menus should appear when you hover over the options but it doesn't work. When hovering over the options "Home" "Insert" "design" "table" "info" etc the respective menus should appear. I have made menus and did dispaly:none on them to make them disappear and put display:block on the options to make the menus appear when you hover over them. What is the mistake pls help.
ol {
list-style: none;
}
li {
float: left;
margin-left: 9%;
font-size: 20px;
font-family: calibri;
padding: 8 20 8 20;
background-color: skyblue;
border-radius: 20px;
margin-top: 5px;
border-top: 5px rgb(53, 53, 185) groove;
border-bottom: 5px rgb(53, 53, 185) groove;
}
#insertmenu {
font-size: 25px;
background-color: skyblue;
width: 100px;
padding: 20 10 20 10;
font-family: calibri;
border-radius: 10px;
border-left: 4px rgb(20, 20, 119) solid;
border-right: 4px rgb(20, 20, 119) solid;
margin-top: 40px;
margin-left: 23.5%;
display: none;
}
#viewmenu {
font-size: 25px;
background-color: skyblue;
width: 100px;
padding: 20 10 20 10;
font-family: calibri;
border-radius: 10px;
border-left: 4px rgb(20, 20, 119) solid;
border-right: 4px rgb(20, 20, 119) solid;
margin-top: 40px;
margin-left: 7%;
display: none;
}
#tablemenu {
font-size: 25px;
background-color: skyblue;
width: 100px;
padding: 20 10 20 10;
font-family: calibri;
border-radius: 10px;
border-left: 4px rgb(20, 20, 119) solid;
border-right: 4px rgb(20, 20, 119) solid;
margin-top: 40px;
margin-left: 7%;
display: none;
}
#designmenu {
font-size: 25px;
background-color: skyblue;
width: 100px;
padding: 20 10 20 10;
font-family: calibri;
border-radius: 10px;
border-left: 4px rgb(20, 20, 119) solid;
border-right: 4px rgb(20, 20, 119) solid;
margin-top: 40px;
margin-left: 7%;
display: none;
}
#li:hover {
background-color: white;
}
#insert:hover+#insertmenu {
display: block;
}
#view:hover+#viewmenu {
display: block;
}
#table:hover+#tablemenu {
display: block;
}
#design:hover+#designmenu {
display: block;
}
<ol>
<li> Home </li>
<li id="insert"> Insert </li>
<li id="view"> View </li>
<li id="table"> Table </li>
<li id="design"> Design </li>
<li> Info </li>
</ol>
<br> <br> <br>
<ol>
<li id="insertmenu">
Photos Videos Table
</li>
<li id="viewmenu">
Chart Pictures Videos
</li>
<li id="tablemenu">
Chart Pictures Videos
</li>
<li id="designmenu">
Chart Pictures Videos
</li>
</ol>