回答編集履歴

2

edit

2021/02/21 00:12

投稿

m.ts10806
m.ts10806

スコア80850

test CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  [Bootstrap4](https://getbootstrap.com/docs/4.5/utilities/text/)には確かにありました。
8
8
 
9
- [Bootstrap5](https://getbootstrap.com/docs/5.0/utilities/text/#text-alignment)ではクラス名が変わってます
9
+ [Bootstrap5](https://getbootstrap.com/docs/5.0/utilities/text/#text-alignment)ではクラス名が変わっており、ドキュメントのコードもちょっと変わってます(文章は同じ)
10
10
 
11
11
 
12
12
 

1

edit

2021/02/21 00:12

投稿

m.ts10806
m.ts10806

スコア80850

test CHANGED
@@ -1,5 +1,35 @@
1
- text-light
1
+ 5.0に[text-right]というクラスはありません。
2
2
 
3
-
3
+ [Bootstrap内のソースを検索](https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta2/dist/css/bootstrap.css)してみてください。
4
4
 
5
+
6
+
7
+ [Bootstrap4](https://getbootstrap.com/docs/4.5/utilities/text/)には確かにありました。
8
+
9
+ [Bootstrap5](https://getbootstrap.com/docs/5.0/utilities/text/#text-alignment)ではクラス名が変わってます。
10
+
11
+
12
+
5
- text-right
13
+ ```html
14
+
15
+ <p class="text-start">Start aligned text on all viewport sizes.</p>
16
+
17
+ <p class="text-center">Center aligned text on all viewport sizes.</p>
18
+
19
+ <p class="text-end">End aligned text on all viewport sizes.</p>
20
+
21
+
22
+
23
+ <p class="text-sm-start">Start aligned text on viewports sized SM (small) or wider.</p>
24
+
25
+ <p class="text-md-start">Start aligned text on viewports sized MD (medium) or wider.</p>
26
+
27
+ <p class="text-lg-start">Start aligned text on viewports sized LG (large) or wider.</p>
28
+
29
+ <p class="text-xl-start">Start aligned text on viewports sized XL (extra-large) or wider.</p>
30
+
31
+ ```
32
+
33
+
34
+
35
+ 既に指摘がある通り、ドキュメントを確認しましょう。