Skip to content

Instantly share code, notes, and snippets.

@0xNord
Last active May 20, 2023 18:41
Show Gist options
  • Select an option

  • Save 0xNord/440860bbb1e7a4a012d69dec681159f0 to your computer and use it in GitHub Desktop.

Select an option

Save 0xNord/440860bbb1e7a4a012d69dec681159f0 to your computer and use it in GitHub Desktop.
some info about CSS Reset & Normalize

INFO

My reset.css

html {
    box-sizing: border-box; /* dimension of elements will include the border and padding */
}
*, *::before, *::after {
    box-sizing: inherit; /*  all elements preset in the Dom & pseudo-elements(::before, ::after) takes value of property from its parent element  */
}
h1, h2, h3, h4, h5, h6, p {
    padding: 0;
    margin: 0;
}
body {
    margin: 0;
    padding: 0;
}

Some links

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment