Skip to content

Commit ebee3a7

Browse files
committed
flex basics
1 parent 908179e commit ebee3a7

File tree

1 file changed

+23
-4
lines changed

1 file changed

+23
-4
lines changed

practice/04 - CSS Layouts/flexbox.html

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,32 @@
4343
/* STARTER */
4444
font-family: sans-serif;
4545
background-color: #ddd;
46-
font-size: 34px;
46+
font-size: 32px;
4747
margin: 40px;
4848

4949
/* FLEXBOX */
5050
display: flex;
5151
align-items: center;
52-
justify-content: space-between;
52+
justify-content: flex-start;
53+
gap: 30px;
54+
}
55+
56+
.el {
57+
/*margin-right: 30px;*/
58+
}
59+
60+
.el--1 {
61+
align-self: flex-start;
62+
}
63+
64+
.el--5 {
65+
align-self: stretch;
66+
order: 1;
67+
/* ordering the element. default is 0*/
68+
}
69+
70+
.el--6 {
71+
order: -1; /* ordering the element */
5372
}
5473
</style>
5574
</head>
@@ -61,8 +80,8 @@
6180
<div class="el el--4">are</div>
6281
<div class="el el--5">amazing</div>
6382
<div class="el el--6">languages</div>
64-
<div class="el el--7">to</div>
65-
<div class="el el--8">learn</div>
83+
<!-- <div class="el el&#45;&#45;7">to</div>-->
84+
<!-- <div class="el el&#45;&#45;8">learn</div>-->
6685
</div>
6786
</body>
6887
</html>

0 commit comments

Comments
 (0)