All three examples use an identical media query (min-width: 600px) And behave the same when I decrease the viewport width on desktop.
But they don’t behave the same on my mobile.
Examples 1 and 2 (grid & flexbox) render two columns on mobile which means the media query (min-width: 600px) has evaluated to true.
But example 3 (float) renders 1 column on mobile so you can say the media query has not evaluated to true here.
How is it possible? Same media queries, Same device, Different results.
Thanks for your help and by the way, I’ve got a similar problem (which I asked in another topic), I really appreciate if you can check that too.
first, it’s min-width query, not max-width.
second, most mobile browsers lie about their width.
add this line inside the head element to get the desired results: <meta name="viewport" content="width=device-width, initial-scale=1.0">
currently it’s only in the Float example