-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCSS Grid.html
More file actions
55 lines (42 loc) · 1.09 KB
/
CSS Grid.html
File metadata and controls
55 lines (42 loc) · 1.09 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CSS Grid</title>
<style>
.container {
border: 2px solid yellow;
display: grid;
grid-template-areas: "nav nav nav"
"slide article article"
"footer footer footer";
}
.item {
height: 20px;
border: 2px solid red;
}
.item1 {
grid-area: nav;
}
.item2 {
grid-area: slide;
}
.item3 {
grid-area: article;
}
.item4 {
grid-area: footer;
}
</style>
</head>
<body>
<div class="container">
<div class="item item1">1</div>
<div class="item item2">2</div>
<div class="item item3">3</div>
<div class="item item4">4</div>
<div class="item item5">5</div>
</div>
</body>
</html>