Skip to content

michaelmawhinney/planckreset

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 

Repository files navigation

planckreset is quite possibly the smallest CSS reset in the universe. At only 57 bytes, simply copy and paste the planckreset code snippet at beginning of your CSS.

The goal of this project is to provide a bare-essentials CSS reset that lays out the most minimal framework for basic webpages. For example, if you're making a basic static website that simply displays an image in the center using display: flex, you probably don't need a full CSS reset for every possible HTML element.

Sometimes you just need the basics:

  • Zero margins on <body>
  • Set box-sizing: border-box on all elements and ::before/::after pseudo-elements

Sometimes you just need the smallest bit of help and that's where planckreset comes in.

insert this code snippet at the start of your CSS:

body{margin:0}*,*::before,*::after{box-sizing:border-box}

About

An extremely small CSS reset for modern browsers.

Resources

Stars

Watchers

Forks

Contributors

Languages