-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgridArea.html
51 lines (51 loc) · 1.11 KB
/
gridArea.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<style>
.container {
display: grid;
grid-template-rows: 100px 300px 100px;
gap: 10px;
grid-template-areas:
"sidebar header header"
"sidebar main main"
"sidebar footer footer";
}
.header {
grid-area: header;
background-color: #F1ECC3;
}
.sidebar {
grid-area: sidebar;
background-color: #F1CAC3;
}
.main {
grid-area: main;
background-color: #D0F1C3;
}
.footer {
grid-area: footer;
background-color: #C3D1F1;
}
</style>
</head>
<body>
<section class="container">
<header class="header">
Header
</header>
<aside class="sidebar">
SideBar
</aside>
<main class="main">
Main
</main>
<footer class="footer">
Footer
</footer>
</section>
</body>
</html>