-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflexbox.html
More file actions
61 lines (54 loc) · 3.01 KB
/
flexbox.html
File metadata and controls
61 lines (54 loc) · 3.01 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>
<!-- Requiret meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-5">
<!-- Bootstrap css -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn."
crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css">
<title>Flexbox</title>
</head>
<body>
<!-- justify content(end,center,around,between) is use to move the item in the flexbox -->
<div class="container">
<h1 class="text-center display-4">Flexbox</h1>
<div class="border border-dark d-flex justify-content-start align-items-end" style="height: 200px">
<button class="btn btn-info btn-lg">Large</button>
<button class="btn btn-primary">SMALL</button>
<button class="btn btn-warning">small</button>
</div>
<div class="border border-dark d-flex flex-column-reverse justify-content-start align-items-end" style="height: 200px">
<button class="btn btn-info btn-lg">Large</button>
<button class="btn btn-primary">SMALL</button>
<button class="btn btn-warning">small</button>
</div>
<div class="border border-dark d-flex flex-column justify-content-start align-items-start" style="height: 200px">
<button class="btn btn-info btn-lg">Large</button>
<button class="btn btn-primary">SMALL</button>
<button class="btn btn-warning">small</button>
</div>
<div class="border border-dark d-flex flex-column-reverse justify-content-end align-items-center" style="height: 200px">
<button class="btn btn-info btn-lg">Large</button>
<button class="btn btn-primary">SMALL</button>
<button class="btn btn-warning">small</button>
</div>
<h1 class="display-4 text-center">EXAMPLE TIME</h1>
<div class=" d-flex flex-column flex-md-row justify-content-between">
<button class="btn btn-dark btn-lg">Link 1</button>
<button class="btn btn-dark btn-lg">Link 2</button>
<button class="btn btn-dark btn-lg">Link 3</button>
<button class="btn btn-dark btn-lg">Link 4</button>
<button class="btn btn-dark btn-lg">Link 5</button>
<button class="btn btn-dark btn-lg">Link 6</button>
</div>
</div>
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"
crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/proper.js"
crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.0.0"
crossorigin="anonymous"></script>
</body>
</html>