Skip to content

Commit dcddf54

Browse files
committed
Created DIVs sections, Modified css for for new elements
1 parent e0d0324 commit dcddf54

File tree

2 files changed

+30
-4
lines changed

2 files changed

+30
-4
lines changed

flex/04-flex-information/index.html

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,24 @@
99
</head>
1010
<body>
1111
<div class="title">Information!</div>
12-
12+
<div class="plant-container">
13+
<div class="plant">
1314
<img src="./images/barberry.png" alt="barberry">
1415
<div class="text">This is a type of plant. We love this one.</div>
15-
16+
</div>
17+
<div class="plant">
1618
<img src="./images/chilli.png" alt="chili">
1719
<div class="text">This is another type of plant. Isn't it nice</div>
18-
20+
</div>
21+
<div class="plant">
1922
<img src="./images/pepper.png" alt="pepper">
2023
<div class="text">We have so many plants. Yay plants.</div>
21-
24+
</div>
25+
<div class="plant">
2226
<img src="./images/saffron.png" alt="saffron">
2327
<div class="text">I'm running out of things to say about plants.</div>
28+
</div>
29+
</div>
2430

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

flex/04-flex-information/style.css

Lines changed: 20 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 {
@@ -10,8 +11,27 @@ img {
1011
.title {
1112
font-size: 36px;
1213
font-weight: 900;
14+
margin-bottom: 32px;
15+
color: hsl(300, 25%, 50%);
1316
}
1417

18+
.plant-container{
19+
display: flex;
20+
flex-wrap: wrap;
21+
justify-content: center;
22+
gap: 52px;
23+
24+
}
25+
26+
/*could try giving it a border and make the borders equal sizes
27+
so the boxes all have the same dimensions*/
28+
.plant{
29+
max-width: 200px;
30+
border: dashed hsl(300, 25%, 50%);
31+
}
32+
33+
34+
1535
/* do not edit this footer */
1636
.footer {
1737
position: fixed;

0 commit comments

Comments
 (0)