loading...

How do you start your css file?

the24thds profile image David Sima ・1 min read

I usually start like this:

*:not(ul):not(ol) {
  margin: 0;
  padding: 0;
}

It reverts most of the browser specific styles that I care of in the beginning preserving lists markers.

Discussion

pic
Editor guide
Collapse
cecilelebleu profile image
Cécile Lebleu

Interesting snippet! I’ll probably use it 😁
I usually start by defining global color variables, and also * {margin: 0}