I'm attempting to use a MOBILE first approach to responsive design.
In doing so, I wish to convert my MAX media queries to MIN media queries.
Therefore, instead of using graceful degradation, I aim to implement progressive enhancement
Can anyone explain the best way to re-engineer my CSS to use MIN-width media queries as opposed to MAX-width?
In the example below I have trimmed out 95% of the css and have left the breakpoints
//------------------------------MAIN CSS
html {
box-sizing: border-box; /* apply borderbox to * */
}
*, *:before, *:after {
box-sizing: inherit;
}}
// --------------------------------MEDIA
@media screen and (max-width: 740px) {
#body {
display:none!important;
} }
// --------------------------------MEDIA
@media screen and (max-width: 600px) {
#header {
height: 17.3em;
} }