Instead of wrapping everything in a <div>
, can I just the set the display
of <body>
to grid
?
<style>
.grid-container {
display: grid;
// Other grid stuff
}
</style>
…
<body>
<div class="grid-container">
<div class="header"></div>
<div class="other"></div>
</div>
</body>
vs.
<style>
body {
display: grid;
// Other grid stuff
}
</style>
…
<body>
<div class="header"></div>
<div class="other"></div>
</body>