Skip to content

Commit cd908d4

Browse files
committed
lesson 3-1: align-items end
1 parent 19b41f8 commit cd908d4

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

31-aling-items/scss/_flex.scss

+10-5
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,17 @@
22
display: flex;
33
gap: 1rem;
44
flex-direction: row;
5-
flex-wrap: wrap;
6-
justify-content: space-evenly;
7-
height: 100vh;
8-
align-content: space-around;
5+
align-items: center;
96

107
.card {
11-
width: 40%;
8+
width: 20rem;
9+
}
10+
11+
.card:nth-child(1) {
12+
align-self: flex-end;
13+
}
14+
15+
.card:nth-child(3) {
16+
align-self: stretch;
1217
}
1318
}

0 commit comments

Comments
 (0)