Tagged: Behavior = None, media queries
- This topic has 5 replies, 2 voices, and was last updated 6 years, 11 months ago by
Sebastian.
Author | Posts |
---|---|
experientdesign
May 3, 2018 at 9:25 pm
|
Heads up! this post was created when Microthemer was at version 5. The current version is 7. Some references to the interface may be out of date. I’m using the Behavior feature to display different images for desktop and phone. All views work except for Large Desktop. Even though the variable is set to “None”, both desktop and mobile images appear when viewing on a Large Desktop Setting. All other views work as they are set. Any help is appreciated. |
Sebastian
May 4, 2018 at 8:58 am
|
Hey, could you please post a link to your page with the images so I can inspect the CSS? It sounds like something might be overriding your display:none setting for Large Desktop, but I’ll know more once I’ve viewed the page. Thanks, |
experientdesign
May 4, 2018 at 12:05 pm
|
Here’s the URL: http://devnascate.experientdesign.com/ Thanks so much for looking at this and the quick response! |
Sebastian
May 4, 2018 at 1:40 pm
|
Thanks for the link. The issue is that there is a missing range which MT’s default media queries don’t cover (978px – 1199px). If you look at the shading on the top ruler, you can see the scope of the media query for a given tab. The Large Desktop media query only applies to screen widths of 1200px or wider. And so your display:none rule only kicks in at that point. Here the ranges for the media queries you used. Large Desktop: @media (min-width: 1200px) There are a couple of ways you could solve this. Option 1
Option 2 I hope my explanation make sense. Please let me know if you need more advice. Thanks! |
experientdesign
May 4, 2018 at 2:50 pm
|
I used option 2 and it worked! Thanks so much! |
Sebastian
May 4, 2018 at 3:14 pm
|
Great! |