-
AuthorPosts
-
May 5, 2014 at 11:50 pm #40970
One last question on this. What are the exact resolutions for each visibility types? Desktop/Tablet/Phone?
May 6, 2014 at 2:17 pm #41203Hi David,
It looks something like this:
Phone: 0px – 767px
Tablet: 768px – 979px
Desktop: 979px+The ranges are a general estimate based on popular screen sizes of devices in those categories.
May 6, 2014 at 4:42 pm #41269Considering that the current Desktop visibility is about 1/3 of today’s max resolution, I think it would be great to add a few more visibility types to allow people to craft their sites for all desktop resolutions. That’s my problem here.
Maybe something like:
Phone: 0px – 767px
Tablet: 768px – 979px
Desktop-sm: 980px – 1023px
Desktop-med: 1024px – 1151px
Desktop-large: 1152px – 1279px
Desktop-xl: 1280px+May 7, 2014 at 11:20 am #41578Hi David,
For now, we’re trying to keep things simple and have Phone, Tablet, Desktop. Most sites will have a “Max width” set in Customizer anyway. This will basically constrain the site’s container to not exceed an amount (usually 1200px)
You’re certainly welcome to add your own media queries to restyle elements at different sizes.
May 7, 2014 at 12:18 pm #41609My site is set up that exact way.. optimized for 1200 width. It’s just that area between 979px and 1200 when things automatically move around.
This kind of gets back to my original question. Is there a simple answer for this? Maybe I just didn’t answer it correctly?
Let’s say I have an image on my page:
[image src=”https://theme.co/media/x-home-main-customizer-loupe-2-comp.png”]
What would I put in the below media query to make it disappear?
/* Screen larger than 980px, but smaller than 1200px */
@media (min-width:980px) and (max-width:1200px) {}
And odds are, this wouldn’t work in IE, correct unless I added Javascript as well?
May 7, 2014 at 11:35 pm #42010Hey David,
To hide that image in your media query, add a class to your image
[image class="your-class" src="https://theme.co/media/x-home-main-customizer-loupe-2-comp.png"]
and target it with the CSS below.
/* Screen larger than 980px, but smaller than 1200px */ @media (min-width:980px) and (max-width:1200px) { img.your-class { display:none } }
IE9 and above supports it.
Hope that helps. 🙂
May 7, 2014 at 11:47 pm #42013I’ll test it out, but I think this is exactly what I am looking for. In fact, this is what I was attempting to ask for in my first post. Thanks again!!
May 8, 2014 at 4:08 pm #42300You’re very welcome David! Don’t hesitate to contact us if you have other questions.
May 8, 2014 at 5:02 pm #42327This reply has been marked as private.May 8, 2014 at 11:26 pm #42449This reply has been marked as private.May 9, 2014 at 7:07 pm #42790Hi David,
I just tried that on IE11, and its working. Although I have to change it into
@media (min-width:1201px) { img.my-class { display:none; } }
So it wont negate other media query that using max-width:1200px.
Could you try that too?
Thank you.
May 9, 2014 at 8:53 pm #42823This reply has been marked as private.May 11, 2014 at 1:14 pm #43206Hi David,
That because of this
@media (min-width:980px) and (max-width:1200px) { ... } @media (min-width:1201px) { ... }
Is evaluated to
@media (min-width:980px) and (min-width:1201px)
, it will shows screen greater than 1201px , but it also say should show greater than 980px(IE followed this one). Greater than 980px and 1201px were both TRUE on desktop.Instead, change your css into :
.my-class{ } /* Below 1200 but higher than 1201 */ @media (min-width:1201px) and (max-width:1200px) { img.my-class { display:block; } }
Hope this helps.
-
AuthorPosts