-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUsing Grid Area.html
More file actions
82 lines (82 loc) · 2.32 KB
/
Using Grid Area.html
File metadata and controls
82 lines (82 loc) · 2.32 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Grid Area Layout</title>
<style>
.header, .nav, .main, .sidebar, .advertise, .footer{
background-color: bisque;
border: 2px solid tomato;
padding: 5px;
border-radius: 5px;
}
.header{
grid-area: header;
}
.nav{
grid-area: nav;
}
.main{
grid-area: main;
}
.sidebar{
grid-area: sidebar;
}
.advertise{
grid-area: advertise;
}
.footer{
grid-area: footer;
}
.container{
display: grid;
grid-template-areas:
"header header header"
"nav main sidebar"
"nav main advertise"
"footer footer footer"
;
gap: 20px;
/*
ami jemon structure chai
temon just shajaya likhbo
tylei pawa jabe omon
*/
}
</style>
</head>
<body class="container">
<header class="header">
<h3>The Header</h3>
</header>
<nav class="nav">
<ul>
<li><a href="">Nav 1</a></li>
<li><a href="">Nav 2</a></li>
<li><a href="">Nav 3</a></li>
</ul>
</nav>
<main class="main">
<article>
<h3>Main Article 1</h3>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Quaerat ipsum repellendus ut cum, a veritatis corrupti esse? Est, minus. Sequi labore ducimus officia earum optio! Quasi eius minima deserunt quis.</p>
</article>
<article>
<h3>Main Article 2</h3>
<p>Atque voluptates at expedita ut non numquam ea nobis? Sapiente maxime magnam mollitia sint. Quis nesciunt consequatur, libero error accusantium qui repellendus voluptatibus suscipit. Placeat obcaecati cupiditate nemo eum dicta!</p>
</article>
</main>
<aside>
<div class="sidebar">
<h4>Sidebar</h4>
</div>
<div class="advertise">
<h4>Advertise</h4>
</div>
</aside>
<footer class="footer">
<h3>The Footer</h3>
</footer>
</body>
</html>