-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
337 lines (297 loc) · 13.9 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="A worksheet to teach the concepts of Flexbox">
<meta name="keywords" content=""
<meta name="author" content="devCodeCamp">
<link rel="stylesheet" href="styles/index.css">
<link rel="stylesheet" href="worksheet.css">
<title>devCodeCamp FlexBox Worksheet</title>
</head>
<body>
<section class="bottom-space">
<header>
<img class="no-border" src="images/dccLogo.png" alt="devCodeCamp logo">
<h1 class="text header-text">Flexbox Worksheet</h1>
</header>
<div class="intro-box">
<p class="text">
Each problem below consists of a static image file on the right and manipulatable HTML elements on the left. Each problem has its own container class in <b>worksheet.css</b>. Your goal is to alter the CSS classes in the <b>worksheet.css</b> file so that the image on the left matches the image on the right. You may not alter index.html or index.css to help achieve this, only <b>worksheet.css</b>!
</p>
<p class="text">
Once you have completed an image, edit the <b>index.html</b> with the property you used to arrive at the result. Add the property name inside the <span class="answer"> </span>. This will leave you with a handy reference for what the different values do!
</p>
<p class="text">
Number One is a completed example. If you look in <b>worksheet.css</b>, you will see it is using the "align-items: flex-start" property.
</p>
<p class="text">
Each section focuses on a single flexbox property, though as the sheet continues, you may end up reusing some you have already seen, such as centering content. If multiple attributes are used to arrive at the result, only fill in the value of the property the section is focusing on.
</p>
</div>
</section>
<br>
<br>
<section>
<h2 class="text section-text">Section One: Align-Items</h2>
<br>
<h3 class="text">Number One: <span class="answer">flex-start</span></h3>
<hr>
<br>
<div class="flex-container">
<div class="flex-left">
<div class="field container-1">
<div class="football"><strong class="stitching">I I I I I I</strong></div>
<div class="football"><strong class="stitching">I I I I I I</strong></div>
<div class="football"><strong class="stitching">I I I I I I</strong></div>
</div>
</div>
<div class="flex-right">
<img src="images/image_1.png" alt="footballs on a field">
</div>
</div>
<br>
<h3 class="text">Number Two: <span class="answer">Flex-end </span></h3>
<hr>
<br>
<div class="flex-container">
<div class="flex-left">
<div class="field container-2">
<div class="football"><strong class="stitching">I I I I I I</strong></div>
<div class="football"><strong class="stitching">I I I I I I</strong></div>
<div class="football"><strong class="stitching">I I I I I I</strong></div>
</div>
</div>
<div class="flex-right">
<img src="images/image_2.png" alt="footballs on a field">
</div>
</div>
<br>
<h3 class="text">Number Three: <span class="answer">Center </span></h3>
<hr>
<br>
<div class="flex-container">
<div class="flex-left">
<div class="field container-3">
<div class="football"><strong class="stitching">I I I I I I</strong></div>
<div class="football"><strong class="stitching">I I I I I I</strong></div>
<div class="football"><strong class="stitching">I I I I I I</strong></div>
</div>
</div>
<div class="flex-right">
<img src="images/image_3.png" alt="footballs on a field">
</div>
</div>
<hr>
</section>
<br>
<br>
<section>
<h2 class="text section-text">Section Two: Justify-Content</h2>
<br>
<h3 class="text">Number Four: <span class="answer">Flex-end </span></h3>
<hr>
<br>
<div class="flex-container">
<div class="flex-left">
<div class="field container-4">
<div class="football"><strong class="stitching">I I I I I I</strong></div>
<div class="football"><strong class="stitching">I I I I I I</strong></div>
<div class="football"><strong class="stitching">I I I I I I</strong></div>
</div>
</div>
<div class="flex-right">
<img src="images/image_4.png" alt="footballs on a field">
</div>
</div>
<br>
<h3 class="text">Number Five: <span class="answer">Center </span></h3>
<hr>
<br>
<div class="flex-container">
<div class="flex-left">
<div class="field container-5">
<div class="football"><strong class="stitching">I I I I I I</strong></div>
<div class="football"><strong class="stitching">I I I I I I</strong></div>
<div class="football"><strong class="stitching">I I I I I I</strong></div>
</div>
</div>
<div class="flex-right">
<img src="images/image_5.png" alt="footballs on a field">
</div>
</div>
<br>
<h3 class="text">Number Six: <span class="answer">Space-evenly </span></h3>
<hr>
<br>
<div class="flex-container">
<div class="flex-left">
<div class="field container-6">
<div class="football"><strong class="stitching">I I I I I I</strong></div>
<div class="football"><strong class="stitching">I I I I I I</strong></div>
<div class="football"><strong class="stitching">I I I I I I</strong></div>
</div>
</div>
<div class="flex-right">
<img src="images/image_6.png" alt="footballs on a field">
</div>
</div>
<br>
<h3 class="text">Number Seven: <span class="answer">Space-around</span></h3>
<hr>
<br>
<div class="flex-container">
<div class="flex-left">
<div class="field container-7">
<div class="football"><strong class="stitching">I I I I I I</strong></div>
<div class="football"><strong class="stitching">I I I I I I</strong></div>
<div class="football"><strong class="stitching">I I I I I I</strong></div>
</div>
</div>
<div class="flex-right">
<img src="images/image_7.png" alt="footballs on a field">
</div>
</div>
<br>
<h3 class="text">Number Eight: <span class="answer">Space-between </span></h3>
<hr>
<br>
<div class="flex-container">
<div class="flex-left">
<div class="field container-8">
<div class="football"><strong class="stitching">I I I I I I</strong></div>
<div class="football"><strong class="stitching">I I I I I I</strong></div>
<div class="football"><strong class="stitching">I I I I I I</strong></div>
</div>
</div>
<div class="flex-right">
<img src="images/image_8.png" alt="footballs on a field">
</div>
</div>
<br>
<h3 class="text">Number Nine: <span class="answer">Flex-end </span></h3>
<hr>
<br>
<div class="flex-container">
<div class="flex-left">
<div class="field container-9">
<div class="football"><strong class="stitching">I I I I I I</strong></div>
<div class="football"><strong class="stitching">I I I I I I</strong></div>
<div class="football"><strong class="stitching">I I I I I I</strong></div>
</div>
</div>
<div class="flex-right">
<img src="images/image_9.png" alt="footballs on a field">
</div>
</div>
<hr>
</section>
<br>
<br>
<section>
<h2 class="text section-text">Section Three: Flex-Wrap</h2>
<br>
<h3 class="text">Number Ten: <span class="answer">Wrap </span></h3>
<hr>
<br>
<div class="flex-container">
<div class="flex-left">
<div class="field container-10">
<div class="football"><strong class="stitching">I I I I I I</strong></div>
<div class="football"><strong class="stitching">I I I I I I</strong></div>
<div class="football"><strong class="stitching">I I I I I I</strong></div>
<div class="football"><strong class="stitching">I I I I I I</strong></div>
<div class="football"><strong class="stitching">I I I I I I</strong></div>
<div class="football"><strong class="stitching">I I I I I I</strong></div>
<div class="football"><strong class="stitching">I I I I I I</strong></div>
<div class="football"><strong class="stitching">I I I I I I</strong></div>
</div>
</div>
<div class="flex-right">
<img src="images/image_10.png" alt="footballs on a field">
</div>
</div>
<br>
<h3 class="text">Number Eleven: <span class="answer">Wrap </span></h3>
<hr>
<br>
<div class="flex-container">
<div class="flex-left">
<div class="field container-11">
<div class="football"><strong class="stitching">I I I I I I</strong></div>
<div class="football"><strong class="stitching">I I I I I I</strong></div>
<div class="football"><strong class="stitching">I I I I I I</strong></div>
<div class="football"><strong class="stitching">I I I I I I</strong></div>
<div class="football"><strong class="stitching">I I I I I I</strong></div>
<div class="football"><strong class="stitching">I I I I I I</strong></div>
<div class="football"><strong class="stitching">I I I I I I</strong></div>
<div class="football nerf"><strong class="stitching nerf-stitch">I I I I I I</strong></div>
</div>
</div>
<div class="flex-right">
<img src="images/image_11.png" alt="footballs on a field">
</div>
</div>
<hr>
</section>
<br>
<br>
<section>
<h2 class="text section-text">Section Four: Align-Self & Order</h2>
<br>
<p class="text intro-box">
In this section, you will need to add properties to both the container itself, as well as the 'nerf' class which represents the styling of the blue football. Properties applied to the container class will affect everything within the container, while applying 'align-self' and/or 'order' to the 'nerf' class will only affect the blue football.
</p>
<h3 class="text">Number Twelve: <span class="answer">Flex-end </span></h3>
<hr>
<br>
<div class="flex-container">
<div class="flex-left">
<div class="field container-12">
<div class="football"><strong class="stitching">I I I I I I</strong></div>
<div class="football"><strong class="stitching">I I I I I I</strong></div>
<div class="football nerf-12"><strong class="stitching">I I I I I I</strong></div>
</div>
</div>
<div class="flex-right">
<img src="images/image_12.png" alt="footballs on a field">
</div>
</div>
<br>
<h3 class="text">Number Thirteen: <span class="answer">Center </span></h3>
<hr>
<br>
<div class="flex-container">
<div class="flex-left">
<div class="field container-13">
<div class="football"><strong class="stitching">I I I I I I</strong></div>
<div class="football"><strong class="stitching">I I I I I I</strong></div>
<div class="football nerf-13"><strong class="stitching">I I I I I I</strong></div>
</div>
</div>
<div class="flex-right">
<img src="images/image_13.png" alt="footballs on a field">
</div>
</div>
<br>
<h3 class="text">Number Fourteen: <span class="answer">Start </span></h3>
<hr>
<br>
<div class="flex-container">
<div class="flex-left">
<div class="field container-14">
<div class="football"><strong class="stitching">I I I I I I</strong></div>
<div class="football"><strong class="stitching">I I I I I I</strong></div>
<div class="football nerf-14"><strong class="stitching">I I I I I I</strong></div>
</div>
</div>
<div class="flex-right">
<img src="images/image_14.png" alt="footballs on a field">
</div>
</div>
</section>
<br>
<br>
</html>