-
Notifications
You must be signed in to change notification settings - Fork 0
/
grid area practiceII.html
50 lines (44 loc) · 1023 Bytes
/
grid area practiceII.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>grid area practice II</title>
<meta content="width=device-width, initial-scale=1.0" name="viewport" />
<style>
.container {
display: grid;
grid-template-columns: 100px 300px 300px;
grid-template-rows: 250px 600px;
grid-template-areas:
"hd hd hd hd"
"sd main main main"
"ft ft ft ft";
border: 7px solid black;
}
.box {
border: 1px solid silver;
background: goldenrod;
}
.header {
grid-area: hd;
}
.sidebar {
grid-area: sd;
}
.main {
grid-area: main;
}
.footer {
grid-area: ft;
}
</style>
</head>
<body>
<div class="container">
<div class="header box">Header</div>
<div class="sidebar box">Sidebar</div>
<div class="main box">Main</div>
<div class="footer box">Footer</div>
</div>
</body>
</html>