I've been struggling to hide a specific image on my website for mobile devices. I've experimented with various combinations of HTML and CSS code, but I just can't seem to make it work. I suspect the issue might have something to do with my div classes and ID tags.
If anyone could help me figure this out, I would really appreciate it.
Here's the HTML code:
<section id="left-sidebar">
<div class="logo">
<a href="#intro" class="link-scroll">
<img src="assets/images/other_images/logo.png" alt="description of image">
<img src="assets/images/other_images/nav.png" class="nav">
</a>
</div>
And here's the CSS code:
@media (max-width: 600px) {
#left-sidebar .logo .nav {
display:none;
}
}