DEV Community

Discussion on: How do you structure your css (media queries)?

Collapse
 
andrewbaisden profile image
Andrew Baisden

First I do a CSS Reset

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-size: 62.5%;
}

html {
    font-size: 1.6rem;
}

Then I just write pure Vanilla CSS using CSS Grid and Flex Box. They are more than powerful enough frameworks like bootstrap become second choice. I used to use CSS preprocessors like Sass but not anymore I don't think its that essential.