<div class="container">
  <header class="header item">.header</header>
  <main class="main item">.main</main>
  <aside class="aside item">.aside</aside>
  <footer class="footer item">.footer</footer>
</div>
/* -------- Skip this base code -------- */
* { box-sizing: border-box; } .container { display: grid; gap: 1px; padding: 1px; border: 16px solid silver; color: white; } .item { padding: 8px; background: coral; }

.container {
  grid: 
    'header header header header'
    'main main main aside'
    'footer footer footer footer'
}
.container .header { grid-area: header; }
.container .main { grid-area: main; }
.container .aside { grid-area: aside; }
.container .footer { grid-area: footer; }

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.