Consider this scenario: there is a button and a menu enclosed in a container. The menu remains concealed due to CSS styling, but becomes visible when hovering over the container. Consequently, by hovering over the button, the menu is displayed, and it disappears once the cursor leaves the menu perimeter.
Your question warrants further investigation - I am inclined to give it a thumbs down.
#menu {
position: absolute;
top: 28px;
right: 26%;
}
.fa-chevron-circle-down {
display: block;
position: absolute;
right: 0;
top: 0;
width: 22px;
height:28px;
}
ul {
position: absolute;
right: 0;
top: 28px;
list-style: none;
padding: 0;
margin: 0;
display: none;
}
li {
padding: 5px;
}
li:nth-of-type(even) {
background: #ddd;
}
li:nth-of-type(odd) {
background: #eee;
}
#menu:hover ul {
display: block;
}
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" />
<div id="menu">
<i class="fa fa-chevron-circle-down" aria-hidden="true" style="font-size: 25px; cursor: pointer;"></i>
<ul>
<li><a href="#">This</a></li>
<li><a href="#">Is</a></li>
<li><a href="#">One</a></li>
<li><a href="#">Approach</a></li>
</ul>
</div>