-
Notifications
You must be signed in to change notification settings - Fork 0
/
GridHorizontal-Alignment.html
68 lines (58 loc) · 2.25 KB
/
GridHorizontal-Alignment.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>BootStrap 5 Basic</title>
<!-- CDN link
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-gH2yIJqKdNHPEq0n4Mqa/HGKIhSkIHeL5AyhkYV8i59U5AR6csBvApHHNl/vI1Bx" crossorigin="anonymous"> -->
<!-- Compiled CSS and JS -->
<link rel="stylesheet" href="/css/bootstrap.min.css">
<style>
.col-item {
border: 1px solid #333;
width: 100px;
height: 100px;
background: orange;
}
</style>
</head>
<body>
<div class="container bg-info">
<div class="row justify-content-start">
<div class="col-4 col-item">Area 1</div>
<div class="col-4 col-item">Area 2</div>
<div class="col-4 col-item">Area 3</div>
</div>
<br>
<div class="row justify-content-center">
<div class="col-4 col-item">Area 1</div>
<div class="col-4 col-item">Area 2</div>
<div class="col-4 col-item">Area 3</div>
</div>
<br>
<div class="row justify-content-end">
<div class="col-4 col-item">Area 1</div>
<div class="col-4 col-item">Area 2</div>
<div class="col-4 col-item">Area 3</div>
</div>
<br>
<div class="row justify-content-around">
<div class="col-4 col-item">Area 1</div>
<div class="col-4 col-item">Area 2</div>
<div class="col-4 col-item">Area 3</div>
</div>
<br>
<div class="row justify-content-between">
<div class="col-4 col-item">Area 1</div>
<div class="col-4 col-item">Area 2</div>
<div class="col-4 col-item">Area 3</div>
</div>
</div>
<!-- CDN link
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/js/bootstrap.bundle.min.js" integrity="sha384-A3rJD856KowSb7dwlZdYEkO39Gagi7vIsF0jrRAoQmDKKtQBHUuLZ9AsSv4jD4Xa" crossorigin="anonymous"></script> -->
<!-- Compiled CSS and JS -->
<script src="/js/bootstrap.js"></script>
</body>
</html>