Search
 
SCRIPT & CODE EXAMPLE
 

CSS

josh comeau css reset

/* source: https://www.joshwcomeau.com/css/custom-css-reset/ */
/*
  1. Use a more-intuitive box-sizing model.
*/
*, *::before, *::after {
  box-sizing: border-box;
}
/*
  2. Remove default margin
*/
* {
  margin: 0;
}
/*
  3. Allow percentage-based heights in the application
*/
html, body {
  height: 100%;
}
/*
  Typographic tweaks!
  4. Add accessible line-height
  5. Improve text rendering
*/
body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
/*
  6. Improve media defaults
*/
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}
/*
  7. Remove built-in form typography styles
*/
input, button, textarea, select {
  font: inherit;
}
/*
  8. Avoid text overflows
*/
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}
/*
  9. Create a root stacking context
*/
#root, #__next {
  isolation: isolate;
}
Comment

PREVIOUS NEXT
Code Example
Css :: circle with 4 colors css 
Css :: html css hide details arrow 
Css :: make blinking cursor disappear css 
Css :: css selector to change long bot description top.gg 
Css :: ionic ios remove button appearance 
Css :: chmod recursive 
Css :: dotted underline css 
Css :: css selected color 
Css :: css grid full width row 
Css :: tailwind border color with gradient 
Css :: html5 video hide progress bar 
Css :: styling radio input 
Css :: iPhone XS css 
Css :: bootstrap Changing the separator 
Css :: position sticky css 
Css :: how to change selection color 
Css :: hover on one div affect another 
Css :: dom ids have numbers 
Css :: difference between and px in css 
Css :: css animation infinite 
Css :: html text not wrapping 
Css :: have background color and background image css 
Css :: relier css html 
Css :: round 2 corners of div css 
Css :: css calc 
Css :: how to crop images in css 
Css :: ie11 flex 1 
Css :: how to center text in css 
Css :: Add elipses to a dom element with css 
Css :: convert firebase created_at to Date string 
ADD CONTENT
Topic
Content
Source link
Name
2+3 =