While this may seem straightforward for some, the reality is quite different. I have two images that need to be displayed based on screen size. In my HTML code, I used classes like hidden-md, hidden-sm, and hidden-xs assuming they would only show on large screens. For the second image, I wanted it visible on tablets and mobiles, so I assigned classes like visible-sm, visible-md, and hidden-lg. However, when resizing the browser, the first image doesn't disappear when going down to tablet size, but does disappear on mobile devices. Can anyone point out what I've done wrong?
<a class="navbar-brand hidden-md, hidden-sm, hidden-xs" style=" background-image: url('/Content/Images/FirstImage.png'); background-repeat: no-repeat;" href='@Url.Action("Index", "Home")'></a>
<a class="navbar-brand hidden-lg, visible-sm, visible-md" style=" background-image: url('/Content/Images/SecondImage.png'); background-repeat: no-repeat;" href='@Url.Action("Index", "Home")'></a>