-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathareas.html
48 lines (42 loc) · 932 Bytes
/
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
<!DOCTYPE html>
<html>
<head>
<link href="css/grid.css" rel="stylesheet">
<style>
.grid {
grid-template-areas: "a b b c"
"d b b c"
"e e e e";
width: 150px;
}
.grid div {
width: 100%;
height: 100%;
}
#item1 {
grid-area: a;
}
#item2 {
grid-area: b;
}
#item3 {
grid-area: c;
}
#item4 {
grid-area: d;
}
#item5 {
grid-area: e;
}
</style>
</head>
<body>
<div class="grid">
<div id="item1">area a</div>
<div id="item2">area b<br>area b<br>area b</div>
<div id="item3">area c area c area c</div>
<div id="item4">area d area d</div>
<div id="item5">area e area e area e</div>
</div>
</body>
</html>