-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGrid.html
52 lines (51 loc) · 1.05 KB
/
Grid.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Welcome</title>
<style type="text/css">
.box1{
grid-area: hearder;
}
.box2{
grid-area: menu;
}
.box3{
grid-area: content;
}
.box4{
grid-area: Right;
}
.box5{
grid-area: Footer;
}
.grid-container{
display: grid;
grid-template-areas:
'header header header header header header'
'menu content content content right right'
'menu footer footer footer footer footer';
gap: 10px;
background-color: #f1f1f1;
padding: 10px;
}
.grid-container>div{
background-color: rgb(255, 255, 255, 0.8);
text-align: center;
padding: 20px 0;
font-size: 30px;
}
</style>
</head>
<body>
<h2>CSS Grid</h2>
<div class="grid-container">
<div class="box1">Header</div>
<div class="box2">Menu</div>
<div class="box3">Content / Dashboard</div>
<div class="box4">Right</div>
<div class="box5">Footer</div>
</div>
</body>
</html>