Skip to content

Commit c3698c5

Browse files
committed
flex
align item's default property is stretch and gap, justify-content, align-items, flex-direction, flex-wrap, align-content are applied to flex container. And align-self , flex-grown, flex-shrink, flex-basis ,flex, order are applied to flex-item
1 parent fb0c3ac commit c3698c5

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

starter/04-CSS-Layouts/flexbox.html

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
<style>
99
.el--1 {
1010
background-color: blueviolet;
11+
align-self: end;
12+
order: 1;
1113
}
1214
.el--2 {
1315
background-color: orangered;
@@ -18,12 +20,16 @@
1820
}
1921
.el--4 {
2022
background-color: goldenrod;
23+
align-self: flex-start;
2124
}
2225
.el--5 {
2326
background-color: palevioletred;
27+
order: 2;
2428
}
2529
.el--6 {
2630
background-color: steelblue;
31+
align-self: center;
32+
order: -1;
2733
}
2834
.el--7 {
2935
background-color: yellow;
@@ -40,8 +46,9 @@
4046
font-size: 40px;
4147
margin: 40px;
4248
display: flex;
43-
align-items: stretch;
49+
align-items: flex-start;
4450
justify-content: space-around;
51+
gap: 20px;
4552
/* FLEXBOX */
4653
}
4754
</style>

0 commit comments

Comments
 (0)