DEV Community

David Sima
David Sima

Posted on

3 1

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}

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay