I'm trying to create a dropdown menu.
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">About</a></li>
<li id="mobile"><a href="#">Mobile</a></li>
</ul>
I want to hide the Mobile option on the desktop and show it only on smaller devices.
li#mobile {
display: none;
}
@media screen and (max-width: 800px) {
li#mobile {
display: block;
}
}
The problem is, that when the #mobile is visible, the disc is missing from the list only for this item. What is happening here and what's the solution?