<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>ss-describe-a-grid-layout-using-named-grid-lines#/tab-transcript</title>
<style>
.container > * {
background-color: chocolate;
font-size: 2em;
display: flex;
justify-content: center;
align-items: center;
}
.container {
display: grid;
height: 100vh;
grid-gap: 10px;
grid-template-columns:
[left-sidebar-start] 1fr
[left-sidebar-end main-content-start] 2fr
[main-content-end right-sidebar-start] 1fr
[right-sidebar-end];
grid-template-rows:
[body-start] 6fr
[body-end footer-start] 2fr
[footer-end];
}
.footer {
grid-column: main-content-start / right-sidebar-end;
}
.left-sidebar {
grid-row: body-start / footer-end;
}
</style>
</head>
<body>
<div class="container">
<div class="left-sidebar">Left Sidebar</div>
<div class="main-content">Main Content</div>
<div class="right-sidebar">Right Sidebar</div>
<div class="footer">Footer</div>
</div>
</body>
</html>
// Code goes here
/* Styles go here */