<div class="container">
<header class="header item">.header</header>
<nav class="nav item">.nav</nav>
<main class="main item">.main</main>
<aside class="aside item">.aside</aside>
<aside class="aside item">.aside</aside>
<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; } .header, .main, .footer { background: royalblue; }
.container {
grid-template-columns: 1fr 2fr 3fr;
grid-template-areas:
'header header header'
'nav main main'
'. . .'
'footer footer footer';
}
.header { grid-area: header; }
.main { grid-area: main; }
.footer { grid-area: footer; }
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.