File tree Expand file tree Collapse file tree 6 files changed +15
-16
lines changed
exercise-specific-src/15-more-flexbox Expand file tree Collapse file tree 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-
71.site-wrapper {
82 margin-right : 0 ;
93 margin-left : 0 ;
Original file line number Diff line number Diff line change 11.countries {
22 display : flex;
33}
4+
5+ .layout-container {
6+ display : flex;
7+ justify-content : space-evenly;
8+ }
9+
410/* Add your own CSS code below */
Original file line number Diff line number Diff line change 1515</ head >
1616
1717< body >
18+ < div class ="layout-container ">
1819 < div class ="site-wrapper site-wrapper ">
1920 < div class ="site-header ">
2021 < h1 class ="site-header__title "> Exercises</ h1 >
@@ -90,6 +91,7 @@ <h3>Fifth</h3>
9091 src ="../../exercise-specific-src/15-more-flexbox/solution5.png "
9192 />
9293 </ div >
94+ </ div >
9395</ body >
9496
9597</ html >
Original file line number Diff line number Diff line change 11# Item order
22
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!
44
5- To do :
5+ ###Bonus exercise :
66
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:
98
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 " >
1110
12- When you're finished, it should look like the image below.
11+ But today we also learned about ` media-queries ` .
1312
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:
1514
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