Skip to content

Commit 53fd0af

Browse files
committed
Completed The flex Property
1 parent be8582d commit 53fd0af

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

myWork/04-CSS-Layouts/flexbox.html

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
font-family: sans-serif;
3838
background-color: #ddd;
3939
font-size: 25px;
40-
margin: 40px;
40+
margin: 20px;
4141

4242
/* FLEXBOX */
4343
display: flex;
@@ -49,6 +49,22 @@
4949
*/
5050
align-items: center;
5151
justify-content: flex-start;
52+
53+
gap: 5px;
54+
}
55+
56+
.el {
57+
/*
58+
flex-grow: 0;
59+
flex-shrink: 1;
60+
flex-basis: auto;
61+
*/
62+
63+
/* flex-basis: 200px;
64+
flex-grow: 1;
65+
flex-shrink: 0;
66+
*/
67+
flex: 1 0 auto;
5268
}
5369

5470
.el--1 {

0 commit comments

Comments
 (0)