Add center-grid div

This commit is contained in:
The Magician 2023-12-02 17:40:40 +00:00
parent 74562e0b55
commit 427e49e596
2 changed files with 10 additions and 0 deletions

View File

@ -19,5 +19,7 @@
<div class="starfield"> <div class="starfield">
<div class="starfield__stars"></div> <div class="starfield__stars"></div>
</div> </div>
<div class="center-grid"></div>
</body> </body>
</html> </html>

View File

@ -7,3 +7,11 @@ body {
width: 100vw; width: 100vw;
height: 100vh; height: 100vh;
} }
.center-grid {
width: 100%;
height: 100%;
display: grid;
place-items: center;
}