<div class="example">
<header>
header content here
</header>
<main class="main">
<nav>
nav content here
</nav>
<div class="content">
content here
</div>
<aside>
aside content here
</aside>
</main>
<footer>
footer content here
</footer>
</div>
* {
box-sizing: border-box;
}
*:before, *:after {
box-sizing: inherit;
}
body {
width: 100%;
height: 100%;
overflow-x: hidden;
font-size: 100%;
line-height: 1.5;
}
.example {
width: 100%;
height: 100vh;
max-width: 1200px;
margin: 0 auto;
display: flex;
flex-direction: column;
}
header, footer {
width: 100%;
background: coral;
text-align: center;
font-size: 2rem;
}
header {
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}
.main {
display: flex;
height: 100%;
font-size: 2rem;
/*justify-content: space-between;*/
justify-content: space-around;
}
nav, aside {
padding: 1em;
}
nav {
background: lightblue;
}
aside {
background: lightgreen;
}
.content {
background: orange;
padding: 1em;
}
footer {
padding: 1em;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.