-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGrid_Areas_Practice.html
67 lines (61 loc) · 1.65 KB
/
Grid_Areas_Practice.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Grid-Area Practice</title>
</head>
<style>
body{
margin: 0;
padding: 0;
height: 100vh;
display: grid;
grid-template-columns: 1fr 1.2fr 1.5fr 1.2fr ;
grid-template-rows: 1fr 2fr 1.5fr 1.5fr;
grid-template-areas:
"sidebar header header header"
"sidebar sect1 sect2 sect3"
"sidebar main main main"
"sidebar footer footer footer";
}
header{
background-color: paleturquoise;
grid-area: header;
}
aside{
background-color: rgb(73, 100, 255);
grid-area: sidebar;
}
section:nth-of-type(1){
background-color: rgb(175, 153, 246);
grid-area: sect1;
}
section:nth-of-type(2){
background-color: rgb(248, 142, 243);
grid-area: sect2;
}
section:nth-of-type(3){
background-color: rgb(219, 92, 151);
grid-area: sect3;
}
main{
background-color: rgb(100, 142, 211);
grid-area: main;
}
footer{
background-color: rgb(240, 199, 221);
grid-area: footer;
}
</style>
<body>
<header>Lorem ipsum dolor sit amet.</header>
<aside>Lorem ipsum dolor sit amet.</aside>
<section>Lorem ipsum dolor sit amet.</section>
<section>Lorem ipsum dolor sit amet.</section>
<section>Lorem ipsum dolor sit amet.</section>
<main>Lorem ipsum dolor sit amet.</main>
<footer>Lorem ipsum dolor sit amet.</footer>
</body>
</html>