質問編集履歴
3
文法の修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -340,7 +340,7 @@
|
|
340
340
|
|
341
341
|
HTML、CSSを勉強中です。
|
342
342
|
|
343
|
-
添付画像のpuzzleを作成中です。
|
343
|
+
添付画像のようなpuzzleを作成中です。
|
344
344
|
|
345
345
|
上4つ、下3つの並んだ黄色とグレーの箱の作成で煮詰まってしまいました。
|
346
346
|
|
@@ -348,7 +348,9 @@
|
|
348
348
|
|
349
349
|
|
350
350
|
|
351
|
+
今現在画像とは少し違うpuzzleですが
|
352
|
+
|
351
|
-
|
353
|
+
box1.2.3を囲む新しい要素を作っています。
|
352
354
|
|
353
355
|
box1.2.3を同じクラス名にしてmarginを必要な部分だけかけるところで煮詰まりました。
|
354
356
|
|
2
書式修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -68,6 +68,10 @@
|
|
68
68
|
|
69
69
|
```
|
70
70
|
|
71
|
+
|
72
|
+
|
73
|
+
```ここに言語を入力
|
74
|
+
|
71
75
|
body{
|
72
76
|
|
73
77
|
width: 400px;
|
1
不明箇所明記
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,3 +1,339 @@
|
|
1
|
+
``````ここに言語を入力
|
2
|
+
|
3
|
+
<!DOCTYPE html>
|
4
|
+
|
5
|
+
<html lang="en">
|
6
|
+
|
7
|
+
<head>
|
8
|
+
|
9
|
+
<meta charset="UTF-8">
|
10
|
+
|
11
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
12
|
+
|
13
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
14
|
+
|
15
|
+
<title>Document</title>
|
16
|
+
|
17
|
+
<link rel="stylesheet" href="reset3.css">
|
18
|
+
|
19
|
+
<link rel="stylesheet" href="div3.css">
|
20
|
+
|
21
|
+
</head>
|
22
|
+
|
23
|
+
<body>
|
24
|
+
|
25
|
+
<div class="wrapper">
|
26
|
+
|
27
|
+
<div class="red-box">
|
28
|
+
|
29
|
+
<div class="box1"></div>
|
30
|
+
|
31
|
+
<div class="box2"></div>
|
32
|
+
|
33
|
+
<div class="box3"></div>
|
34
|
+
|
35
|
+
</div>
|
36
|
+
|
37
|
+
<div class="main clearfix">
|
38
|
+
|
39
|
+
<div class="green-box">
|
40
|
+
|
41
|
+
</div>
|
42
|
+
|
43
|
+
<div class="orange-box">
|
44
|
+
|
45
|
+
<div class="box4"></div>
|
46
|
+
|
47
|
+
<div class="box5"></div>
|
48
|
+
|
49
|
+
<div class="box6"></div>
|
50
|
+
|
51
|
+
</div>
|
52
|
+
|
53
|
+
</div>
|
54
|
+
|
55
|
+
<div class="yellow-box">
|
56
|
+
|
57
|
+
</div>
|
58
|
+
|
59
|
+
</div>
|
60
|
+
|
61
|
+
</body>
|
62
|
+
|
63
|
+
</html>
|
64
|
+
|
65
|
+
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
```
|
70
|
+
|
71
|
+
body{
|
72
|
+
|
73
|
+
width: 400px;
|
74
|
+
|
75
|
+
}
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
.wrapper{
|
80
|
+
|
81
|
+
width: 400px;
|
82
|
+
|
83
|
+
margin: 0 auto;
|
84
|
+
|
85
|
+
}
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
.red-box{
|
94
|
+
|
95
|
+
height: 100px;
|
96
|
+
|
97
|
+
background: #ff0000;
|
98
|
+
|
99
|
+
position: relative;
|
100
|
+
|
101
|
+
margin: 0;
|
102
|
+
|
103
|
+
padding: 10px;
|
104
|
+
|
105
|
+
}
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
.box1{
|
110
|
+
|
111
|
+
margin: 10px;
|
112
|
+
|
113
|
+
padding: 0;
|
114
|
+
|
115
|
+
width: 40px;
|
116
|
+
|
117
|
+
height: 40px;
|
118
|
+
|
119
|
+
background: #a9004b;
|
120
|
+
|
121
|
+
position: absolute;
|
122
|
+
|
123
|
+
top: 20px;
|
124
|
+
|
125
|
+
right: 20px;
|
126
|
+
|
127
|
+
border: 10px solid;
|
128
|
+
|
129
|
+
border-color: #ffffff;
|
130
|
+
|
131
|
+
float: right;
|
132
|
+
|
133
|
+
}
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
.box2{
|
138
|
+
|
139
|
+
margin: 10px;
|
140
|
+
|
141
|
+
padding: 0;
|
142
|
+
|
143
|
+
width: 40px;
|
144
|
+
|
145
|
+
height: 40px;
|
146
|
+
|
147
|
+
background: #a9004b;
|
148
|
+
|
149
|
+
position: absolute;
|
150
|
+
|
151
|
+
top: 20px;
|
152
|
+
|
153
|
+
right: 70px;
|
154
|
+
|
155
|
+
border: 10px solid;
|
156
|
+
|
157
|
+
border-color: #ffffff;
|
158
|
+
|
159
|
+
float: right;
|
160
|
+
|
161
|
+
}
|
162
|
+
|
163
|
+
|
164
|
+
|
165
|
+
.box3{
|
166
|
+
|
167
|
+
margin: 10px;
|
168
|
+
|
169
|
+
padding: 0;
|
170
|
+
|
171
|
+
width: 40px;
|
172
|
+
|
173
|
+
height: 40px;
|
174
|
+
|
175
|
+
background: #a9004b;
|
176
|
+
|
177
|
+
position: absolute;
|
178
|
+
|
179
|
+
top: 20px;
|
180
|
+
|
181
|
+
right: 120px;
|
182
|
+
|
183
|
+
border: 10px solid;
|
184
|
+
|
185
|
+
border-color: #ffffff;
|
186
|
+
|
187
|
+
float: right;
|
188
|
+
|
189
|
+
}
|
190
|
+
|
191
|
+
|
192
|
+
|
193
|
+
.green-box{
|
194
|
+
|
195
|
+
width: 150px;
|
196
|
+
|
197
|
+
height: 250px;
|
198
|
+
|
199
|
+
background: #00ff51;
|
200
|
+
|
201
|
+
float: left;
|
202
|
+
|
203
|
+
}
|
204
|
+
|
205
|
+
|
206
|
+
|
207
|
+
.orange-box{
|
208
|
+
|
209
|
+
width: 250px;
|
210
|
+
|
211
|
+
height: 250px;
|
212
|
+
|
213
|
+
background: #8c2727;
|
214
|
+
|
215
|
+
position: relative;
|
216
|
+
|
217
|
+
float: left;
|
218
|
+
|
219
|
+
}
|
220
|
+
|
221
|
+
|
222
|
+
|
223
|
+
.box4{
|
224
|
+
|
225
|
+
margin: 10px;
|
226
|
+
|
227
|
+
padding: 0;
|
228
|
+
|
229
|
+
width: 140px;
|
230
|
+
|
231
|
+
height: 40px;
|
232
|
+
|
233
|
+
background: #ff863f;
|
234
|
+
|
235
|
+
position: absolute;
|
236
|
+
|
237
|
+
top: 40px;
|
238
|
+
|
239
|
+
left: 40px;
|
240
|
+
|
241
|
+
border: 5px solid;
|
242
|
+
|
243
|
+
border-color: #ffffff;
|
244
|
+
|
245
|
+
}
|
246
|
+
|
247
|
+
|
248
|
+
|
249
|
+
.box5{
|
250
|
+
|
251
|
+
margin: 10px;
|
252
|
+
|
253
|
+
padding: 0;
|
254
|
+
|
255
|
+
width: 140px;
|
256
|
+
|
257
|
+
height: 40px;
|
258
|
+
|
259
|
+
background: #ff863f;
|
260
|
+
|
261
|
+
position: absolute;
|
262
|
+
|
263
|
+
top: 100px;
|
264
|
+
|
265
|
+
left: 40px;
|
266
|
+
|
267
|
+
border: 5px solid;
|
268
|
+
|
269
|
+
border-color: #ffffff;
|
270
|
+
|
271
|
+
}
|
272
|
+
|
273
|
+
|
274
|
+
|
275
|
+
|
276
|
+
|
277
|
+
.box6{
|
278
|
+
|
279
|
+
margin: 10px;
|
280
|
+
|
281
|
+
padding: 0;
|
282
|
+
|
283
|
+
width: 140px;
|
284
|
+
|
285
|
+
height: 40px;
|
286
|
+
|
287
|
+
background: #ff863f;
|
288
|
+
|
289
|
+
position: absolute;
|
290
|
+
|
291
|
+
top: 160px;
|
292
|
+
|
293
|
+
left: 40px;
|
294
|
+
|
295
|
+
border: 5px solid;
|
296
|
+
|
297
|
+
border-color: #ffffff;
|
298
|
+
|
299
|
+
}
|
300
|
+
|
301
|
+
|
302
|
+
|
303
|
+
|
304
|
+
|
305
|
+
.yellow-box{
|
306
|
+
|
307
|
+
height: 100px;
|
308
|
+
|
309
|
+
background: #fff700;
|
310
|
+
|
311
|
+
|
312
|
+
|
313
|
+
}
|
314
|
+
|
315
|
+
|
316
|
+
|
317
|
+
.clearfix::after{
|
318
|
+
|
319
|
+
content: "";
|
320
|
+
|
321
|
+
display: block;
|
322
|
+
|
323
|
+
clear: both;
|
324
|
+
|
325
|
+
|
326
|
+
|
327
|
+
}
|
328
|
+
|
329
|
+
|
330
|
+
|
331
|
+
|
332
|
+
|
333
|
+
```
|
334
|
+
|
335
|
+
|
336
|
+
|
1
337
|
HTML、CSSを勉強中です。
|
2
338
|
|
3
339
|
添付画像のpuzzleを作成中です。
|
@@ -6,4 +342,12 @@
|
|
6
342
|
|
7
343
|
ご教授頂けませんでしょうか?
|
8
344
|
|
345
|
+
|
346
|
+
|
347
|
+
今現在box1.2.3を囲む新しい要素を作っています。
|
348
|
+
|
349
|
+
box1.2.3を同じクラス名にしてmarginを必要な部分だけかけるところで煮詰まりました。
|
350
|
+
|
351
|
+
|
352
|
+
|
9
353
|
![![イメージ説明](cad4993d73ed86e600ce2f9b165084bb.jpeg)](3b4541c21379d0cb3004ebcbdec79ad0.jpeg)
|