-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathalignSelf.html
More file actions
62 lines (58 loc) · 1.95 KB
/
Copy pathalignSelf.html
File metadata and controls
62 lines (58 loc) · 1.95 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Flex-direction</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/alignSelf.css">
</head>
<body>
<div class="header">
<h1>Flex With Flexbox</h1>
<p>The align-self property specifies the alignment for the selected item inside the flexible container.</p>
<p>The align-self property overrides the default alignment set by the container's align-items property.</p>
</div>
<div class="head-container">
<h3 class="text-center">Item 2 is aligned "flex-start"</h3>
<div class="flex-container sample1">
<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">Item 2 is aligned "flex-end"</h3>
<div class="flex-container sample2">
<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">Item 2 is aligned "center"</h3>
<div class="flex-container sample3">
<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">Item 2 is aligned "stretch"</h3>
<div class="flex-container sample4">
<div>Item 1</div>
<div>Item 2</div>
<div>Item 3</div>
<div>Item 4</div>
<div>Item 5</div>
</div>
</div>
</body>
</html>