回答編集履歴

1

調整

2025/01/06 07:24

投稿

yambejp
yambejp

スコア116921

test CHANGED
@@ -1,2 +1,49 @@
1
1
  flexでgapを指定しては?
2
2
 
3
+ # 追記
4
+ HTMLの提示がないので勝手に判断しますが、以下のような感じです
5
+ ```html
6
+ <style>
7
+ .container{
8
+ background-Color:yellow;
9
+ width:300px;
10
+ display:flex;
11
+ flex-wrap:wrap;
12
+ }
13
+ .kanji{
14
+ font-size:3em;
15
+ justify-content:space-evenly;
16
+ width:inherit;
17
+ display:flex;
18
+ flex-wrap:wrap;
19
+ }
20
+ .furigana{
21
+ justify-content:center;
22
+ width:inherit;
23
+ display:flex;
24
+ flex-wrap:wrap;
25
+ gap:20px;
26
+ }
27
+ </style>
28
+ <div class="container">
29
+ <div class="kanji">
30
+ <span>香</span>
31
+ <span>呂</span>
32
+ </div>
33
+ <div class="furigana" >
34
+ <span id="japanese">こうろ</span>
35
+ <span id="engish">Koro</span>
36
+ </div>
37
+ </div>
38
+ <hr>
39
+ <div class="container">
40
+ <div class="kanji">
41
+ <span>溝</span>
42
+ <span>口</span>
43
+ </div>
44
+ <div class="furigana" >
45
+ <span id="japanese">みぞぐち</span>
46
+ <span id="engish">Mizoguchi</span>
47
+ </div>
48
+ </div>
49
+ ```