回答編集履歴
1
追記
test
CHANGED
@@ -1 +1,137 @@
|
|
1
1
|
position:absoluteするとラップしているHTML要素は子要素の高さを引き継げません
|
2
|
+
|
3
|
+
|
4
|
+
|
5
|
+
# 追記
|
6
|
+
|
7
|
+
該当部分だけ
|
8
|
+
|
9
|
+
|
10
|
+
|
11
|
+
```CSS
|
12
|
+
|
13
|
+
<style>
|
14
|
+
|
15
|
+
.space-full{
|
16
|
+
|
17
|
+
width: auto;
|
18
|
+
|
19
|
+
}
|
20
|
+
|
21
|
+
.space-top3{
|
22
|
+
|
23
|
+
background-Color:gray;
|
24
|
+
|
25
|
+
}
|
26
|
+
|
27
|
+
.space-top3 h2{
|
28
|
+
|
29
|
+
font-size:32px;
|
30
|
+
|
31
|
+
font-weight:bold;
|
32
|
+
|
33
|
+
font-style:solid;
|
34
|
+
|
35
|
+
text-align:center;
|
36
|
+
|
37
|
+
}
|
38
|
+
|
39
|
+
.space-top3-2{
|
40
|
+
|
41
|
+
background-Color:yellow;
|
42
|
+
|
43
|
+
justify-content: center;
|
44
|
+
|
45
|
+
display: -webkit-flex;
|
46
|
+
|
47
|
+
display: flex;
|
48
|
+
|
49
|
+
}
|
50
|
+
|
51
|
+
.mail,.watch,.earth{
|
52
|
+
|
53
|
+
text-align:center;
|
54
|
+
|
55
|
+
display:inline-block;
|
56
|
+
|
57
|
+
}
|
58
|
+
|
59
|
+
.mail{
|
60
|
+
|
61
|
+
background-Color:lime;
|
62
|
+
|
63
|
+
}
|
64
|
+
|
65
|
+
.watch{
|
66
|
+
|
67
|
+
background-Color:aqua;
|
68
|
+
|
69
|
+
}
|
70
|
+
|
71
|
+
.earth{
|
72
|
+
|
73
|
+
background-Color:fuchsia;
|
74
|
+
|
75
|
+
}
|
76
|
+
|
77
|
+
.mail h3,.watch h3,.earth h3{
|
78
|
+
|
79
|
+
text-align:center;
|
80
|
+
|
81
|
+
}
|
82
|
+
|
83
|
+
.mail p,.watch p,.earth p{
|
84
|
+
|
85
|
+
width: 330px;
|
86
|
+
|
87
|
+
text-align:left;
|
88
|
+
|
89
|
+
}
|
90
|
+
|
91
|
+
</style>
|
92
|
+
|
93
|
+
<div class="space-full">
|
94
|
+
|
95
|
+
<div class="space-top3">
|
96
|
+
|
97
|
+
<h2>いつも完璧な贈りもの</h2>
|
98
|
+
|
99
|
+
<div class="space-top3-2">
|
100
|
+
|
101
|
+
<div class="mail">
|
102
|
+
|
103
|
+
<img src="image/image5.png" width="50px" height="50px" alt="メール">
|
104
|
+
|
105
|
+
<h3>簡単に使える</h3>
|
106
|
+
|
107
|
+
<p>ギフトカードはメールで届きます。Airbnbアカウントへのギフト登録も超かんたん。</p>
|
108
|
+
|
109
|
+
</div>
|
110
|
+
|
111
|
+
<div class="watch">
|
112
|
+
|
113
|
+
<img src="image/image6.png" width="50px" height="50px" alt="時計">
|
114
|
+
|
115
|
+
<h3>有効期間なし</h3>
|
116
|
+
|
117
|
+
<p>Airbnbギフトカードは無期限。だから友達も時間をかけて旅をプランできます。</p>
|
118
|
+
|
119
|
+
</div>
|
120
|
+
|
121
|
+
<div class="earth">
|
122
|
+
|
123
|
+
<img src="image/image7.png" width="50px" height="50px" alt="地球儀">
|
124
|
+
|
125
|
+
<h3>忘れられない旅</h3>
|
126
|
+
|
127
|
+
<p>お家は100万件以上あるので、ずっと住みたいと憧れていた街の暮らしも叶います。</p>
|
128
|
+
|
129
|
+
</div>
|
130
|
+
|
131
|
+
</div>
|
132
|
+
|
133
|
+
</div>
|
134
|
+
|
135
|
+
</div>
|
136
|
+
|
137
|
+
```
|