File tree Expand file tree Collapse file tree 2 files changed +37
-8
lines changed Expand file tree Collapse file tree 2 files changed +37
-8
lines changed Original file line number Diff line number Diff line change 10
10
< body >
11
11
< div class ="title "> Information!</ div >
12
12
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 >
15
18
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 >
18
23
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 >
21
28
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 >
24
34
25
35
<!-- disregard this section, it's here to give attribution to the creator of these icons -->
26
36
< div class ="footer ">
Original file line number Diff line number Diff line change 1
1
body {
2
2
font-family : 'Courier New' , Courier, monospace;
3
+ text-align : center;
3
4
}
4
5
5
6
img {
23
24
align-items : center;
24
25
justify-content : center;
25
26
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 ;
26
45
}
You can’t perform that action at this time.
0 commit comments