Skip to content

Instantly share code, notes, and snippets.

@dexterp
Last active April 11, 2024 21:30
Show Gist options
  • Save dexterp/aa37d5eb1b48ed46e6ae8474db29190c to your computer and use it in GitHub Desktop.
Save dexterp/aa37d5eb1b48ed46e6ae8474db29190c to your computer and use it in GitHub Desktop.
CSS Grid Body
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://cdn.tailwindcss.com"></script>
<style>
body {
margin: 0;
padding: 0;
width: 100%;
height: 100vh;
background-color: aliceblue;
background-image:
linear-gradient(rgba(128, 128, 128, .04) 1px, transparent .01em),
linear-gradient(rgba(128, 128, 128, .09) 1px, transparent .01em),
linear-gradient(rgba(128, 128, 128, .1) 2px, transparent .01em),
linear-gradient(90deg, rgba(128, 128, 128, .04) 1px, transparent .01em),
linear-gradient(90deg, rgba(128, 128, 128, .09) 1px, transparent .01em),
linear-gradient(90deg, rgba(128, 128, 128, .1) 2px, transparent .01em);
background-size:
.5em .5em, 2.5em 2.5em, 5em 5em;
}
</style>
</head>
<body>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment