-
Notifications
You must be signed in to change notification settings - Fork 0
/
grid.html
41 lines (35 loc) · 972 Bytes
/
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
<!DOCTYPE html>
<head>
<title>Grid</title>
<style>
.one{grid-area: header}
.two{grid-area: left}
.three{grid-area: center}
.four{grid-area: right}
.five{grid-area: footer}
.gridcontainer{
display: grid;
grid-template-areas: 'header header header header header header'
'left center center center right right'
'left footer footer footer footer footer';
gap: 10px;
padding: 20px;
}
.gridcontainer > div{
background-color: yellow;
text-align: center;
font-size: 40px;
}
</style>
</head>
<body>
<h1>Learning Grid</h1>
<div class="gridcontainer">
<div class="one">Header</div>
<div class="two">Left</div>
<div class="three">Center</div>
<div class="four">Right</div>
<div class="five">Footer</div>
</div>
</body>
</html>