-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathitem-using-order.html
More file actions
executable file
·39 lines (37 loc) · 1.21 KB
/
item-using-order.html
File metadata and controls
executable file
·39 lines (37 loc) · 1.21 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
<!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-self with flex item (It will accept whole number)</h2>
<p>This property can change the order of the flex items according to given number</p>
<div class="flex-container">
<h3>Without order</h3>
<div class="flex-item-order">
<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 order(3 1 5 2 4)</h3>
<div class="flex-item-order">
<img src="img/image1.jpg" style="order: 3"/>
<img src="img/image2.jpg" style="order: 1"/>
<img src="img/image3.jpg" style="order: 5"/>
<img src="img/image4.jpg" style="order: 2"/>
<img src="img/image5.jpg" style="order: 4"/>
</div>
</div>
</div>
</body>
</html>