I'm trying to hide a specific div when the screen size is mobile, and currently I have:
HTML
<div id='top-btn'>
<a class="fade-in" href="...">Top</a>
</div>
CSS
#top-btn a {
visibility: visible;
opacity: 1;
position: fixed;
...
}
@media screen and (max-width: 768px) {
#top-btn a { display: none; }
}
The div is successfully hidden, but the button remains visible and clickable. I want the entire element to be removed so it can't be interacted with.