-
Notifications
You must be signed in to change notification settings - Fork 0
/
Grid_short_form.html
90 lines (68 loc) Β· 1.71 KB
/
Grid_short_form.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
*{
margin: 0px;
padding: 0px;
box-sizing: border-box;
}
body{
background-color: rgb(167, 103, 226);
width: 100%;
height: 100%;
}
.container{
height: 100%;
width:100%;
background-color: rgb(109, 101, 101);
display: grid;
padding: 4rem;
gap: 1rem;
grid-template-areas:
"header header header"
"sidebar item1 item2"
"sidebar item3 item3"
"footer footer footer"
;
}
#header{
grid-area: header;
}
#sidebar{
grid-area: sidebar;
}
#item1{
grid-area: item1;
}
#item2{
grid-area:item2 ;
}
#item3{
grid-area: item3;
}
#footer{
grid-area:footer ;
}
.item{
background-color: blue;
border: solid 4px black;
padding: 1rem;
color: rgb(226, 226, 226);
}
</style>
</head>
<body>
<div class="container">
<div class="item" id="header">A</div>
<div class="item" id="sidebar">B</div>
<div class="item" id="item1">C</div>
<div class="item" id="item2">D</div>
<div class="item" id="item3">E</div>
<div class="item" id="footer">H</div>
</div>
</body>
</html>