-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path3_TextAlignment-Display.html
48 lines (41 loc) · 1.73 KB
/
3_TextAlignment-Display.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Alignment</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-KyZXEAg3QhqLMpG8r+8fhAXLRk2vvoC2f3B09zVXn8CA5QIVfZOJ3BCsw2P0p/We" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-U1DAWAznBHeqEIlVSCgzq+c9gqGAJn5c/t99JyeKa9xxaYpSvHU5awsuZVVFIhvj" crossorigin="anonymous"></script>
</head>
<body>
<div class="container">
<!-- กำหนดตำแหน่ง (แนวนอน) -->
<p class="text-start">Hello World Start</p>
<p class="text-center">Hello World Center</p>
<p class="text-end">Hello World End</p>
<!-- Block to Inline -->
<h1 class="d-inline bg-success">Hello World</h1>
<h1 class="bg-success d-inline">Hello Bootstrap</h1>
<h1 class="bg-info">Hello World</h1>
<h1 class="bg-info">Hello Bootstrap</h1>
<!-- Inline to Block -->
<span class="bg-warning d-block">Hello Block</span>
<span class="bg-info">Hello inline</span>
<span class="bg-secondary">Hello inline</span>
<br>
<!-- Inline-Block -->
<div class="bg-success d-inline-block">
<h3>Hello</h3>
This is Bootstrap 5
</div>
<div class="bg-secondary d-inline-block">
<h3 class="bg-warning">Hello</h3>
This is Bootstrap 5
</div>
<div class="bg-info">
<h3>Hello</h3>
This is Bootstrap 5
</div>
</div>
</body>
</html>