I am trying to hide a specific image for mobile devices on my website. I have tried various html and css codes and I cannot get it to work. This may have something to do with my div tags and ids.
please someone try to make it work for me?
HTML:
<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>
CSS
@media (max-width: 600px) {
#left-sidebar .logo .nav {
display:none;
}
}
source
share