Hi,
I’m trying to hide/show the same element with slight modifications for optimisation for large screens, average laptops & mobile devices.
Basically I need to change the display setting for portrait background images I have on a grid row in order that they display properly on all three device sizes.
This is the code I’m using in quick CSS.
@media only screen and (min-width: 990px) {
.show-on-mobile { display: none !important; }}
@media only screen and (max-width: 990px) and (min-width: 1500px) {
.show-on-laptop { display: none !important; }}
@media only screen and (max-width: 1500px) {
.show-on-large-screen { display: none !important; }}
Can you tell me where I’m going wrong?
K Rgds,
C
Hey Ciaran1212,
Thanks for reaching out to us!
Please post us your login credentials (in the “private data” field), so we can take a look and inspect further.
Login credentials include:
Best regards,
Jordan
Hi, thanks for coming back to me,
C
Hey!
You should check this list of css media queries for standard devices. https://css-tricks.com/snippets/css/media-queries-for-standard-devices
Or try to replace it with the following code:
@media only screen and (min-width:1600px) {
.show-on-laptop { display: none !important; }
}
@media only screen and (max-width: 1600px) {
.show-on-large-screen { display: none !important; }
}
@media only screen and (max-width: 1200px) {
.show-on-laptop { display: none !important; }
}
@media only screen and (min-width: 1024px) {
.show-on-mobile { display: none !important; }
}
Regards,
Ismael