-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontainer-with-align.html
More file actions
executable file
·65 lines (63 loc) · 2.26 KB
/
container-with-align.html
File metadata and controls
executable file
·65 lines (63 loc) · 2.26 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Photo Gallery</title>
<!-- CSS -->
<link rel="stylesheet" href="css/app.css">
</head>
<body>
<div class="main-container">
<button>
<a href="/">Back</a>
</button>
<h2>Using align-items with flex (Deals with cross-axis. This props is useful for single row.)</h2>
<p>This property is used to align the flex items vertically.</p>
<div class="flex-container">
<h3>Using flex start</h3>
<div class="flex-container-align-start">
<img src="img/image1.jpg"/>
<img src="img/image2.jpg"/>
<img src="img/image3.jpg"/>
<img src="img/image4.jpg"/>
<img src="img/image5.jpg"/>
</div>
<h3>Using flex end</h3>
<div class="flex-container-align-end">
<img src="img/image1.jpg"/>
<img src="img/image2.jpg"/>
<img src="img/image3.jpg"/>
<img src="img/image4.jpg"/>
<img src="img/image5.jpg"/>
</div>
<h3>Using center</h3>
<div class="flex-container-align-center">
<img src="img/image6.jpg"/>
<img src="img/image7.jpg"/>
<img src="img/image8.jpg"/>
<img src="img/image9.jpg"/>
<img src="img/image10.jpg"/>
</div>
<h3>Using stretch</h3>
<div class="flex-container-align-stretch">
<div class="box">One</div>
<div class="box">Two</div>
<div class="box">Three
<br>has
<br>extra
<br>text
</div>
</div>
<h3>Using baseline (will apply to text)</h3>
<div class="flex-container-align-baseline">
<div class="box" style="padding: 10px;">First Item</div>
<div class="box">Second, this is large paragraph. This is another paragraph</div>
<div class="box" style="padding: 30px;">Third</div>
<div class="box" style="padding: 15px;">Fourth, Lorem ipsum dolor sit amet, consectetur adipisicing elit. Reprehenderit fugit tenetur!</div>
<div class="box">Fifth</div>
</div>
</div>
</div>
</body>
</html>