Media Query Problem on Tablet
-
To make my page more responsive, I wanted to do this:
https://i.stack.imgur.com/YfHL5.pngSo I created two pictures. one in the middle of the text for mobile and one in the adjacent column for desktop.
Than, I’ve added the following media query to
style.css
in the WordPress theme editor:#hide-on-mobile { display: none !important; visibility: hidden !important; } @media only screen and (min-width: 570px) { #hide-on-mobile { display: block !important; visibility: visible !important; } #hide-on-desktop { display: none !important; visibility: hidden !important; } }
It works beautifully on desktop and mobile. But not on tablets; from 570px to 970px (tablet) range, both images appear.
I don’t know how to fix this, it seems like some king of conflict with the theme or WordPress.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Media Query Problem on Tablet’ is closed to new replies.