Skip to content

Commit 809a5d7

Browse files
committed
Finished exercise
1 parent 2656174 commit 809a5d7

File tree

2 files changed

+37
-8
lines changed

2 files changed

+37
-8
lines changed

flex/04-flex-information/index.html

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,27 @@
1010
<body>
1111
<div class="title">Information!</div>
1212

13-
<img src="./images/barberry.png" alt="barberry">
14-
<div class="text">This is a type of plant. We love this one.</div>
13+
<div class="plants">
14+
<div class="barberry">
15+
<img src="./images/barberry.png" alt="barberry">
16+
<div class="text">This is a type of plant. We love this one.</div>
17+
</div>
1518

16-
<img src="./images/chilli.png" alt="chili">
17-
<div class="text">This is another type of plant. Isn't it nice</div>
19+
<div class="chilli">
20+
<img src="./images/chilli.png" alt="chili">
21+
<div class="text">This is another type of plant. Isn't it nice</div>
22+
</div>
1823

19-
<img src="./images/pepper.png" alt="pepper">
20-
<div class="text">We have so many plants. Yay plants.</div>
24+
<div class="pepper">
25+
<img src="./images/pepper.png" alt="pepper">
26+
<div class="text">We have so many plants. Yay plants.</div>
27+
</div>
2128

22-
<img src="./images/saffron.png" alt="saffron">
23-
<div class="text">I'm running out of things to say about plants.</div>
29+
<div class="saffron">
30+
<img src="./images/saffron.png" alt="saffron">
31+
<div class="text">I'm running out of things to say about plants.</div>
32+
</div>
33+
</div>
2434

2535
<!-- disregard this section, it's here to give attribution to the creator of these icons -->
2636
<div class="footer">

flex/04-flex-information/style.css

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
body {
22
font-family: 'Courier New', Courier, monospace;
3+
text-align: center;
34
}
45

56
img {
@@ -23,4 +24,22 @@ img {
2324
align-items: center;
2425
justify-content: center;
2526
background: #eee;
27+
}
28+
29+
/* solution */
30+
31+
.title {
32+
margin-bottom: 32px;
33+
}
34+
35+
.plants {
36+
display: flex;
37+
gap: 52px;
38+
}
39+
40+
.barberry,
41+
.chilli,
42+
.pepper,
43+
.saffron {
44+
max-width: 200px;
2645
}

0 commit comments

Comments
 (0)