Skip to content

gnat/css-reset-tiny

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

♻️ Tiny CSS Reset

Under 10 line modern vanilla CSS reset. Ready to copy, paste and go!

/* ♻️ Tiny CSS Reset (https://github.com/gnat/css-reset-tiny) */
*,*::before,*::after { margin: 0; box-sizing: border-box; } /* Remove margins. Use sane box-sizing model. */
html,body,p,ol,ul,li,dl,dt,dd,blockquote,figure,fieldset,legend,textarea,pre,iframe,hr,h1,h2,h3,h4,h5,h6,label,table,td,th { padding: 0; }
h1,h2,h3,h4,h5,h6,p { font-size: 100%; font-weight: normal; overflow-wrap: break-word; } /* Reset all headers. */
button,input,select,textarea { font: inherit; } /* No custom font on forms. */
img,video,picture,canvas,svg { height: auto; max-width: 100%; } /* Media should not break outside of parent. */
table { border-collapse: collapse; border-spacing: 0; } /* Modern tables. */
html,body { height: 100%; background: #AAA; } /* Allow percentage based heights everywhere. Disable flashbang. */

  • Upgraded minireset.css with less bullshit and modern additions.

About

♻️ Under 12 line zero bullshit modern vanilla CSS reset.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages