The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › media queries order in mobile first stragy
Hi
I want to design a responsive website and it’s the first one I’m going to do. I searched and found the term “first mobile”.
Now I wonder if the order of media queries is important in css file? Need some examples :)
Thanks
https://css-tricks.com/logic-in-media-queries/
i didnt get the answer.
if want to follow “mobile firs” strategy, i have to put mediaqueries in order? i mean is it necessary to put small screen css at first and then larger screen?
http://codepen.io/anon/pen/qkzms
Here’s the Desktop First Version: http://codepen.io/rimager/pen/rqxiA VS the Mobile First Version: http://codepen.io/rimager/pen/Ecvds