Skip to content

Commit 98514f7

Browse files
Rares MateiRares Matei
Rares Matei
authored and
Rares Matei
committed
add bonus exercise
1 parent 5c4054a commit 98514f7

File tree

6 files changed

+15
-16
lines changed

6 files changed

+15
-16
lines changed

exercise-specific-src/15-more-flexbox/custom.css

-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
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;
Loading
Loading

week-2/15-more-flexbox/flexbox.css

+6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
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 */

week-2/15-more-flexbox/index.html

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
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>

week-2/15-more-flexbox/readme.md

+7-10
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,15 @@
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">

0 commit comments

Comments
 (0)