Skip to content

Commit 99121e3

Browse files
committed
section-4: Flexbox sandbox.
1 parent 9bf4bb9 commit 99121e3

File tree

1 file changed

+33
-1
lines changed

1 file changed

+33
-1
lines changed

starter/04-CSS-Layouts/flexbox.html

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,42 @@
3636
/* STARTER */
3737
font-family: sans-serif;
3838
background-color: #ddd;
39-
font-size: 40px;
39+
font-size: 32px;
4040
margin: 40px;
4141

4242
/* FLEXBOX */
43+
align-items: center;
44+
display: flex;
45+
gap: 10px;
46+
justify-content: flex-start;
47+
}
48+
49+
.el {
50+
51+
/* DEFAULTS:
52+
flex-grow: 0;
53+
flex-shrink: 1;
54+
flex-basis: auto; */
55+
56+
/* flex-basis: 200px; */
57+
/* flex-shrink: 0; */
58+
/* flex-grow: 1; */
59+
flex: 1;
60+
}
61+
62+
.el--1 {
63+
align-self: flex-start;
64+
/* order: 2; */
65+
/* flex-grow: 3; */
66+
}
67+
68+
.el--5 {
69+
align-self: stretch;
70+
order: 1;
71+
}
72+
73+
.el--6 {
74+
order: -1;
4375
}
4476
</style>
4577
</head>

0 commit comments

Comments
 (0)