-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlayout-6.html
62 lines (59 loc) · 1.37 KB
/
layout-6.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
52
53
54
55
56
57
58
59
60
61
62
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Grid Fundamentals</title>
<style>
* {
box-sizing: border-box;
}
body {
margin: 0;
text-align: center;
}
.wrapper {
display: grid;
width: 100%;
height: 100vh;
grid-template-rows: 1fr 5fr 1fr 1fr;
grid-template-columns: 1fr 80% ;
grid-template-areas:
"header header "
" nav article "
"nav ads "
" footer footer ";
grid-row-gap: .5em;
grid-column-gap: .5em;
}
.header {
grid-area: header;
background: #A5CB4F;
}
.nav{
grid-area: nav;
background: #A5CB4F;
}
.article {
grid-area: article;
background: #A5CB4F;
}
.ads {
grid-area: ads;
background: #A5CB4F;
}
.footer {
grid-area: footer;
background: #A5CB4F;
}
</style>
</head>
<body>
<main class="wrapper">
<div class="header">Header</div>
<div class="article">Article</div>
<div class="ads">Ads</div>
<div class="nav">Nav</div>
<div class="footer">Footer</div>
</main>
</body>
</html>