Skip to content

Instantly share code, notes, and snippets.

@AbeEstrada
Last active January 14, 2022 00:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save AbeEstrada/1993804 to your computer and use it in GitHub Desktop.
Save AbeEstrada/1993804 to your computer and use it in GitHub Desktop.
Snippet: HTML5 Skeleton
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Title</title>
<link rel="stylesheet" type="text/css" href="reset.css" />
</head>
<body>
<div id="root"></div>
</body>
</html>
/*** The new CSS Reset - version 1.2.0 (last updated 23.7.2021) ***/
/* Remove all the styles of the "User-Agent-Stylesheet", except for the 'display' property */
*:where(:not(iframe, canvas, img, svg, video):not(svg *)) {
all: unset;
display: revert;
}
/* Preferred box-sizing value */
*,
*::before,
*::after {
box-sizing: border-box;
}
/*
Remove list styles (bullets/numbers)
in case you use it with normalize.css
*/
ol,
ul {
list-style: none;
}
/* For images to not be able to exceed their container */
img {
max-width: 100%;
}
/* Removes spacing between cells in tables */
table {
border-collapse: collapse;
}
/* Revert the 'white-space' property for textarea elements on Safari */
textarea {
white-space: revert;
}
@AbeEstrada
Copy link
Author

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