Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 22e2efb

Browse files
feat: completed 02-flex-header
!need re-practice
1 parent 7ab0078 commit 22e2efb

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

foundations/flex/02-flex-header/style.css

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
.header {
2-
font-family: monospace;
2+
font-family: 'Courier New', Courier, monospace;
33
background: papayawhip;
4+
/* 1. declare flexbox first */
5+
display: flex;
6+
/* 3. arrange the group of items */
7+
align-items: center;
8+
justify-content: space-between;
9+
/* 5. insert padding (inward unlike margin) */
10+
padding: 8px;
411
}
512

613
.logo {
@@ -14,6 +21,12 @@
1421
ul {
1522
/* this removes the dots on the list items*/
1623
list-style-type: none;
24+
/* 2. declare flexbox for the list */
25+
display: flex;
26+
/* 3. insert gap between items */
27+
gap: 8px;
28+
/* 4. override the default padding value */
29+
padding: 0;
1730
}
1831

1932
a {

0 commit comments

Comments
 (0)