質問編集履歴

1

ソースコード追加しました。

2021/12/08 08:19

投稿

Kimuki
Kimuki

スコア1

test CHANGED
File without changes
test CHANGED
@@ -14,7 +14,19 @@
14
14
 
15
15
 
16
16
 
17
+ <div class="product-wrapper">
18
+
19
+ <div class="container">
20
+
21
+ <div class="heading">
22
+
23
+ <h2>Products</h2>
24
+
25
+ </div>
26
+
27
+ <div class="products">
28
+
17
- <div class="product">
29
+ <div class="product">
18
30
 
19
31
  <div class ="product-icon">
20
32
 
@@ -32,12 +44,178 @@
32
44
 
33
45
  </div>
34
46
 
47
+ <div class="product">
48
+
49
+ <div class ="product-icon">
50
+
51
+ <a href="#"><img src="product-image2.gif"></a>
52
+
53
+ </div>
54
+
55
+ <div class="product-text">
56
+
57
+ <a href="#"><p class="product-name">キャンドルホルダー</p></a>
58
+
59
+ <a href="#"><p class="product-price">¥1,200-</p></a>
60
+
61
+ </div>
62
+
63
+ </div>
64
+
65
+ <div class="product">
66
+
67
+ <div class ="product-icon">
68
+
69
+ <a href="#"><img src="product-image3.gif"></a>
70
+
71
+ </div>
72
+
73
+ <div class="product-text">
74
+
75
+ <a href="#"><p class="product-name">ブックエンド</p></a>
76
+
77
+ <a href="#"><p class="product-price">¥1,900-</p></a>
78
+
79
+ </div>
80
+
81
+ </div>
82
+
83
+ <div class="product">
84
+
85
+ <div class ="product-icon">
86
+
87
+ <a href="#"><img src="product-image4.gif"></a>
88
+
89
+ </div>
90
+
91
+ <div class="product-text">
92
+
93
+ <a href="#"><p class="product-name">ポット(植木鉢)</p></a>
94
+
95
+ <a href="#"><p class="product-price">¥800-</p></a>
96
+
97
+ </div>
98
+
99
+ </div>
100
+
101
+ <div class="product">
102
+
103
+ <div class ="product-icon">
104
+
105
+ <a href="#"><img src="product-image5.gif"></a>
106
+
107
+ </div>
108
+
109
+ <div class="product-text">
110
+
111
+ <a href="#"><p class="product-name">キャンドルホルダー</p></a>
112
+
113
+ <a href="#"><p class="product-price">¥800-</p></a>
114
+
115
+ </div>
116
+
117
+ </div>
118
+
119
+ <div class="product">
120
+
121
+ <div class ="product-icon">
122
+
123
+ <a href="#"><img src="product-image6.gif"></a>
124
+
125
+ </div>
126
+
127
+ <div class="product-text">
128
+
129
+ <a href="#"><p class="product-name">ポット(植木鉢)</p></a>
130
+
131
+ <a href="#"><p class="product-price">¥1,000-</p></a>
132
+
133
+ </div>
134
+
135
+ </div>
136
+
137
+ </div>
138
+
139
+ <div class="btn onlineshop">
140
+
141
+ <a href="#">Online Shop</a>
142
+
143
+ </div>
144
+
145
+ </div>
146
+
147
+ </div>
148
+
149
+
150
+
35
- .product {
151
+ .product-wrapper {
36
-
37
- margin: 0 -110px;
152
+
38
-
39
- display: inline-block;
40
-
41
- padding-bottom: 60px;
153
+ padding: 90px 0;
42
-
154
+
43
- }
155
+ }
156
+
157
+
158
+
159
+ .products {
160
+
161
+ padding: 0 20px;
162
+
163
+ text-align: center;
164
+
165
+ }
166
+
167
+
168
+
169
+
170
+
171
+
172
+
173
+ .product-icon img{
174
+
175
+ width: 49%;
176
+
177
+ border: solid 0.1px #707070;
178
+
179
+ border-radius: 50%;
180
+
181
+ }
182
+
183
+
184
+
185
+ .product-text {
186
+
187
+ font-size: 18px;
188
+
189
+ }
190
+
191
+
192
+
193
+ .product-name {
194
+
195
+ font-weight: bold;
196
+
197
+ margin-bottom: -10px;
198
+
199
+ margin-top: 40px;
200
+
201
+ }
202
+
203
+
204
+
205
+ .onlineshop {
206
+
207
+ text-align: center;
208
+
209
+ font-weight: bold;
210
+
211
+ text-decoration: underline;
212
+
213
+ border-bottom : 5px solid rgba(229,228,227,0.55);
214
+
215
+ padding: 30px 0 100px 0;
216
+
217
+ margin: 0 -15px;
218
+
219
+ font-size: 25px;
220
+
221
+ }