-
Notifications
You must be signed in to change notification settings - Fork 39
/
ch1-grid-template-areas.html
66 lines (53 loc) · 1.09 KB
/
ch1-grid-template-areas.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
63
64
65
66
<!DOCTYPE html>
<html>
<head>
<title>Grid Template Areas</title>
<meta charset="utf-8">
<style>
body {
margin: 40px;
}
.sidebar {
grid-area: sidebar;
}
.content {
grid-area: content;
}
.header {
grid-area: header;
}
.footer {
grid-area: footer;
}
.wrapper {
display: grid;
grid-template-columns: 200px 10px 200px 10px 200px;
grid-template-rows: auto;
grid-template-areas: "header header header header header"
"sidebar . content content content"
"footer footer footer footer footer";
background-color: #fff;
color: #444;
}
.box {
background-color: rgb(120,70,123);
border: 5px solid rgb(88,55,112);
color: #fff;
border-radius: 5px;
padding: 20px;
font: 150%/1.3 Lucida Grande,Lucida Sans Unicode,Lucida Sans,Geneva,Verdana,sans-serif;
}
.header, .footer {
background-color: rgb(23,14,41);
}
</style>
</head>
<body>
<div class="wrapper">
<div class="box header">Header</div>
<div class="box sidebar">Sidebar</div>
<div class="box content">Content</div>
<div class="box footer">Footer</div>
</div>
</body>
</html>