-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathalignment.html
More file actions
61 lines (54 loc) · 1.33 KB
/
alignment.html
File metadata and controls
61 lines (54 loc) · 1.33 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<link rel="stylesheet" href="style.css">
<body>
<div class="header">justyfy-* && align-*</div>
<div class="container">
<div class="itm">1</div>
<div class="itm">2</div>
<div class="itm">3</div>
<div class="itm">4</div>
<div class="itm">5</div>
<div class="itm">6</div>
<div class="itm">7</div>
<div class="itm">8</div>
<div class="itm">9</div>
<div class="itm">10</div>
<div class="itm">1</div>
<div class="itm">2</div>
<div class="itm">3</div>
<div class="itm">4</div>
<div class="itm">5</div>
<div class="itm">6</div>
<div class="itm">7</div>
<div class="itm">8</div>
<div class="itm">9</div>
<div class="itm itm10">10</div>
</div>
</body>
<style>
.container {
border: 1px solid var(--yellow);
display: grid;
grid-template-columns: repeat(5, 100px);
grid-template-rows: repeat(4, 100px);
grid-gap: 25px;
place-items: center center;
justify-content: center;
}
.itm {
background: aliceblue;
border: 1px solid silver;
font-size: 25px;
padding: 20px;
}
.itm10 {
justify-self: end;
align-self: start;
background-color: #6d47d9;
}
</style>
</html>