-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path40grid(grid-gap)CSS.html
More file actions
38 lines (37 loc) · 888 Bytes
/
40grid(grid-gap)CSS.html
File metadata and controls
38 lines (37 loc) · 888 Bytes
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
<!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(grid-gap)</title>
<style>
.grid-container {
width: 500px;
display: grid;
grid-template: auto auto auto / auto auto auto;
grid-gap: 70px 30px;
background-color: #02b290;
border: 1px solid #808080;
}
.items {
background-color: #758283;
margin: 10px;
padding: 20px;
font-size: 20px;
text-align: center;
}
</style>
</head>
<body>
<h2>Example for grid-gap Property</h2>
<div class="grid-container">
<div class="items item1">1</div>
<div class="items">2</div>
<div class="items">3</div>
<div class="items">4</div>
<div class="items">5</div>
<div class="items">6</div>
</div>
</body>
</html>