回答編集履歴
5
回答の削除
answer
CHANGED
|
@@ -1,41 +1,1 @@
|
|
|
1
|
-
Windows 11、Edge、Chrome、Firefoxで確認しました。
|
|
2
|
-
|
|
3
|
-
とりあえず、一番簡単な`NEW`のセンタリングの件のみです。
|
|
4
|
-
align-itemsやtext-alignは、親要素に指定します。
|
|
5
|
-
```CSS
|
|
6
|
-
.other{
|
|
7
|
-
text-align: center;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.other .new{
|
|
11
|
-
display: inline-block;
|
|
12
|
-
font-size: 20px;
|
|
13
|
-
font-weight: 600;
|
|
14
|
-
margin-bottom: 2rem;
|
|
15
|
-
}
|
|
16
|
-
```
|
|
17
|
-
(追記)
|
|
18
|
-
斜線は、文字でいいと思います。
|
|
19
|
-
CSSから、.other .new::before、.other .new::afterは削除します。
|
|
20
|
-
```html
|
|
21
|
-
<section class="other"> <h4 class="new">\ NEW /</h4>
|
|
22
|
-
```
|
|
23
|
-
(さらに追記)
|
|
24
|
-
ボタンの右寄せも、`NEW`のセンタリングと考え方は同じです。
|
|
25
|
-
|
|
1
|
+
反応が無いので削除します。
|
|
26
|
-
```html
|
|
27
|
-
<div class="button-wrapper">
|
|
28
|
-
<button class="more"><a href="#"><div class="mottomiru">もっと見る<i class="fa-solid fa-arrow-right"></i></div></button>
|
|
29
|
-
</div>
|
|
30
|
-
```
|
|
31
|
-
```CSS
|
|
32
|
-
.button-wrapper{
|
|
33
|
-
text-align: right;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.other-article .button-wrapper .more{
|
|
37
|
-
margin-top: 10px;
|
|
38
|
-
margin-bottom: 8px;
|
|
39
|
-
border: #999 1px solid;
|
|
40
|
-
}
|
|
41
|
-
```
|
4
回答の追記
answer
CHANGED
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
```
|
|
17
17
|
(追記)
|
|
18
18
|
斜線は、文字でいいと思います。
|
|
19
|
+
CSSから、.other .new::before、.other .new::afterは削除します。
|
|
19
20
|
```html
|
|
20
21
|
<section class="other"> <h4 class="new">\ NEW /</h4>
|
|
21
22
|
```
|
3
Markdownの修正
answer
CHANGED
|
@@ -16,13 +16,13 @@
|
|
|
16
16
|
```
|
|
17
17
|
(追記)
|
|
18
18
|
斜線は、文字でいいと思います。
|
|
19
|
-
```
|
|
19
|
+
```html
|
|
20
20
|
<section class="other"> <h4 class="new">\ NEW /</h4>
|
|
21
21
|
```
|
|
22
22
|
(さらに追記)
|
|
23
23
|
ボタンの右寄せも、`NEW`のセンタリングと考え方は同じです。
|
|
24
24
|
親要素を追加します。
|
|
25
|
-
```
|
|
25
|
+
```html
|
|
26
26
|
<div class="button-wrapper">
|
|
27
27
|
<button class="more"><a href="#"><div class="mottomiru">もっと見る<i class="fa-solid fa-arrow-right"></i></div></button>
|
|
28
28
|
</div>
|
2
回答の追記
answer
CHANGED
|
@@ -18,4 +18,23 @@
|
|
|
18
18
|
斜線は、文字でいいと思います。
|
|
19
19
|
```HTML
|
|
20
20
|
<section class="other"> <h4 class="new">\ NEW /</h4>
|
|
21
|
+
```
|
|
22
|
+
(さらに追記)
|
|
23
|
+
ボタンの右寄せも、`NEW`のセンタリングと考え方は同じです。
|
|
24
|
+
親要素を追加します。
|
|
25
|
+
```HTML
|
|
26
|
+
<div class="button-wrapper">
|
|
27
|
+
<button class="more"><a href="#"><div class="mottomiru">もっと見る<i class="fa-solid fa-arrow-right"></i></div></button>
|
|
28
|
+
</div>
|
|
29
|
+
```
|
|
30
|
+
```CSS
|
|
31
|
+
.button-wrapper{
|
|
32
|
+
text-align: right;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.other-article .button-wrapper .more{
|
|
36
|
+
margin-top: 10px;
|
|
37
|
+
margin-bottom: 8px;
|
|
38
|
+
border: #999 1px solid;
|
|
39
|
+
}
|
|
21
40
|
```
|
1
回答の追記
answer
CHANGED
|
@@ -13,4 +13,9 @@
|
|
|
13
13
|
font-weight: 600;
|
|
14
14
|
margin-bottom: 2rem;
|
|
15
15
|
}
|
|
16
|
+
```
|
|
17
|
+
(追記)
|
|
18
|
+
斜線は、文字でいいと思います。
|
|
19
|
+
```HTML
|
|
20
|
+
<section class="other"> <h4 class="new">\ NEW /</h4>
|
|
16
21
|
```
|