DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

David Sima
David Sima

Posted on

How do you start your css file?

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.

Top comments (1)

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}

Let's Get Wacky


Use any Linode offering to create something unique or silly in the DEV x Linode Hackathon 2022 and win the Wacky Wildcard category

β†’ Join the Hackathon <-