回答編集履歴

1

追記

2020/05/06 04:02

投稿

hatena19
hatena19

スコア33757

test CHANGED
@@ -9,3 +9,77 @@
9
9
 
10
10
 
11
11
  画像の幅が狭くなっている要素は、前の3分割カラムの子要素になってしまってますのでそのような表示になってます。
12
+
13
+
14
+
15
+ コメントを受けて
16
+
17
+ ---
18
+
19
+
20
+
21
+
22
+
23
+ 模写先のページを見ると、画像の右にテキストを配置したいのだと推測しましたので、その前提でコーディングしてみました。
24
+
25
+
26
+
27
+ ```html
28
+
29
+ <div class="f-container">
30
+
31
+ <div>
32
+
33
+ <img src="https://placehold.jp/400x400.png">
34
+
35
+ </div>
36
+
37
+ <div>
38
+
39
+ <p class="px3">“</p>
40
+
41
+ <h2 style="text-align:left" class="px1">ホスト収入でキッチンリフォーム。お家をいろいろアップグレードしました。</h2>
42
+
43
+ <p style="text-align:left" class="px1">Tessaさんはロンドン在住。ホストになって経済的なゆとりができました</p>
44
+
45
+ <button type="submit" class="btn btn-outline-dark px1">ホスト実践例をチェック</button>
46
+
47
+ </div>
48
+
49
+ </div>
50
+
51
+ ```
52
+
53
+
54
+
55
+ ```css
56
+
57
+ .f-container{
58
+
59
+ display: flex;
60
+
61
+ justify-content: space-between;
62
+
63
+ max-width: 900px;
64
+
65
+ margin: 0 auto;
66
+
67
+ }
68
+
69
+
70
+
71
+ .f-container div {
72
+
73
+ width: 49%;
74
+
75
+ }
76
+
77
+
78
+
79
+ .f-container div img {
80
+
81
+ width: 100%;
82
+
83
+ }
84
+
85
+ ```