Dropdown menu disappears
The following style and code creates a dropdown menu. I place the cursor over the hamburger and the menu opens, but when I move the cursor to pick a link the menu disappears. I've read about this problem, but I think that I have it right, but obviously I don't. Can someone help me fix this?
<style>
a.dropdown:link {
color: #000000;
text-decoration: underline;
}
a.dropdown:visited {
color: #000000;
text-decoration: underline;
}
a.dropdown:hover {
color: #0000DD;
text-decoration: underline;
}
a.dropdown:active {
color: #000000;
text-decoration: underline;
}
.dropdown {
position: relative;
display: inline;
text-align: left;
}
.dropdown-content {
display: none;
position: absolute;
font-size: 14px;
font-weight: normal;
background-color: #DCDCDC;
min-width: 225px;
padding-left: 10px;
z-index: 1;
}
.dropdown:hover .dropdown-content {
display: block;
}
#dropdown_wrapper {
position: relative;
display: inline-block;
}
</style>
<body>
<div id="wrapper">
<div class="tour_title">
<div>This is a test</div>
<div id="dropdown_wrapper">
<div class="dropdown"> ☰
<p class="dropdown-content"> <a href=#>Link 1</a><br>
<a href=#>Link 2</a><br>
<a href=#>Link 3</a> </p>
</div>
</div>
</div>
</div>
</body>
