-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathalignItems.html
More file actions
83 lines (77 loc) · 2.4 KB
/
alignItems.html
File metadata and controls
83 lines (77 loc) · 2.4 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
83
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Align-items</title>
<link href='https://fonts.googleapis.com/css?family=Josefin Sans' rel='stylesheet'>
<link rel="stylesheet" href="./css/boilerplate.css">
<link rel="stylesheet" href="./css/alignItems.css">
</head>
<body>
<div class="header">
<h1>Flex With Flexbox</h1>
<p>The align-items property is used to align the flex items along cross-axis.</p>
</div>
<div class="head-container">
<h3 class="text-center">align-items: flex-start</h3>
<div class="flex-container start">
<div>Item 1</div>
<div>Item 2</div>
<div>Item 3</div>
<div>Item 4</div>
<div>Item 5</div>
</div>
</div>
<div class="head-container">
<h3 class="text-center">align-items: flex-end</h3>
<div class="flex-container end">
<div>Item 1</div>
<div>Item 2</div>
<div>Item 3</div>
<div>Item 4</div>
<div>Item 5</div>
</div>
</div>
<div class="head-container">
<h3 class="text-center">align-items: center</h3>
<div class="flex-container center">
<div>Item 1</div>
<div>Item 2</div>
<div>Item 3</div>
<div>Item 4</div>
<div>Item 5</div>
</div>
</div>
<div class="head-container">
<h3 class="text-center">align-items: stretch</h3>
<div class="flex-container stretch">
<div>Item 1</div>
<div>Item 2</div>
<div>Item 3</div>
<div>Item 4</div>
<div>Item 5</div>
</div>
</div>
<div class="head-container">
<h3 class="text-center">align-items: without baseline</h3>
<div class="flex-container withoutBaseline">
<div>Item 1</div>
<div>Item 2</div>
<div>Item 3</div>
<div>Item 4</div>
<div>Item 5</div>
</div>
</div>
<div class="head-container">
<h3 class="text-center">align-items: baseline</h3>
<div class="flex-container baseline">
<div>Item 1</div>
<div>Item 2</div>
<div>Item 3</div>
<div>Item 4</div>
<div>Item 5</div>
</div>
</div>
</body>
</html>