File tree 6 files changed +15
-16
lines changed
exercise-specific-src/15-more-flexbox
6 files changed +15
-16
lines changed Original file line number Diff line number Diff line change 1
- body {
2
- display : flex;
3
- justify-content : space-evenly;
4
- flex-wrap : wrap;
5
- }
6
-
7
1
.site-wrapper {
8
2
margin-right : 0 ;
9
3
margin-left : 0 ;
Original file line number Diff line number Diff line change 1
1
.countries {
2
2
display : flex;
3
3
}
4
+
5
+ .layout-container {
6
+ display : flex;
7
+ justify-content : space-evenly;
8
+ }
9
+
4
10
/* Add your own CSS code below */
Original file line number Diff line number Diff line change 15
15
</ head >
16
16
17
17
< body >
18
+ < div class ="layout-container ">
18
19
< div class ="site-wrapper site-wrapper ">
19
20
< div class ="site-header ">
20
21
< h1 class ="site-header__title "> Exercises</ h1 >
@@ -90,6 +91,7 @@ <h3>Fifth</h3>
90
91
src ="../../exercise-specific-src/15-more-flexbox/solution5.png "
91
92
/>
92
93
</ div >
94
+ </ div >
93
95
</ body >
94
96
95
97
</ html >
Original file line number Diff line number Diff line change 1
1
# Item order
2
2
3
- The ` order ` property is used to apply
3
+ You know what to do by now - see if you can solve as many of the exercises in here!
4
4
5
- To do :
5
+ ###Bonus exercise :
6
6
7
- 1 . Apply the ` align-items ` property to the _ first_ list of countries, so that all the countries are shown in the middle and left of their container.
8
- 2 . Apply the ` align-items ` property to the _ second_ list of countries, so that all the countries are shown at the bottom left of their container.
7
+ The exercise page currently has a problem. If you have a very small screen, both the exercises and the solutions will be very squished:
9
8
10
- _ Hint: You can review how ` align-items ` works in [ this guide ] ( https://css-tricks.com/snippets/css/a-guide-to-flexbox/#article-header-id-7 ) . _
9
+ < img alt = " Screenshot of flex-direction column " src = " ../../exercise-specific-src/15-more-flexbox/example1.gif " height = " 300 " >
11
10
12
- When you're finished, it should look like the image below.
11
+ But today we also learned about ` media-queries ` .
13
12
14
- ![ Screenshot of the country lists with the correct alignment ] ( /images/12-result.png )
13
+ Add code in ` flexbox.css ` so that when the screen is smaller than ` 1240px ` the containers display like in the below example:
15
14
16
- TODO:
17
- - add order
18
- - add align self exercises
15
+ <img alt =" Screenshot of flex-direction column " src =" ../../exercise-specific-src/15-more-flexbox/example2.gif " height =" 300 " >
You can’t perform that action at this time.
0 commit comments