<header>
<h1>City Gallery</h1>
</header>
<nav>
<a href="#">London</a><br>
<a href="#">Paris</a><br>
<a href="#">Tokyo</a>
</nav>
<section>
<h1>London</h1>
<p>London is the capital city of England. It is the most populous city in the United Kingdom, with a metropolitan area of over 13 million inhabitants.</p>
<p>Standing on the River Thames, London has been a major settlement for two millennia, its history going back to its founding by the Romans, who named it Londinium.</p>
</section>
<footer>
Copyright ©Your Site
</footer>
body {
margin: 0px;
font-family: Arial, Verdana;
display: grid;
grid-template-columns: 1fr 4fr;
grid-template-rows: 100px auto 50px;
grid-template-areas:
"banner banner"
"nav main"
"footer footer";
min-height: 100vh;
}
header {
grid-area: banner;
}
nav {
grid-area: nav;
}
section {
grid-area: main;
}
footer {
grid-area: footer;
}
header,
nav,
section,
footer {
padding: 10px;
box-sizing: border-box;
border: solid 1px #CCC;
height: 100%;
}
header, footer {
text-align: center;
background-color: #EEE;
}
nav {
line-height: 30px;
background-color: #EEE;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.