Skip to content

Commit d9a03d3

Browse files
Finish Flex-Header-2
1 parent 8a34935 commit d9a03d3

File tree

2 files changed

+29
-11
lines changed

2 files changed

+29
-11
lines changed

flex/03-flex-header-2/index.html

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,21 @@
99
</head>
1010
<body>
1111
<div class="header">
12-
<div class="logo">
13-
LOGO
12+
<div class="header-left">
13+
<div class="logo">
14+
LOGO
15+
</div>
16+
<ul class="links">
17+
<li><a href="google.com">link-one</a></li>
18+
<li><a href="google.com">link-two</a></li>
19+
<li><a href="google.com">link-three</a></li>
20+
</ul>
1421
</div>
15-
<ul class="links">
16-
<li><a href="google.com">link-one</a></li>
17-
<li><a href="google.com">link-two</a></li>
18-
<li><a href="google.com">link-three</a></li>
19-
</ul>
20-
<button class="notifications">
21-
1 new notification
22-
</button>
23-
<div class="profile-image"></div>
22+
<div class="header-right">
23+
<button class="notifications">
24+
1 new notification
25+
</button>
26+
<div class="profile-image"></div>
2427
</div>
2528
</body>
2629
</html>

flex/03-flex-header-2/style.css

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,18 @@ body {
1212
background: white;
1313
border-bottom: 1px solid #ddd;
1414
box-shadow: 0 0 8px rgba(0,0,0,.1);
15+
display: flex;
16+
justify-content: space-between;
1517
}
1618

19+
20+
.header-right, .header-left {
21+
display: flex;
22+
align-items: center;
23+
gap: 16px;
24+
}
25+
26+
1727
.profile-image {
1828
background: rebeccapurple;
1929
box-shadow: inset 2px 2px 4px rgba(0,0,0,.5);
@@ -27,6 +37,7 @@ body {
2737
font-size: 32px;
2838
font-weight: 900;
2939
font-style: italic;
40+
margin: 0px;
3041
}
3142

3243
button {
@@ -45,4 +56,8 @@ a {
4556

4657
ul {
4758
list-style-type: none;
59+
display: flex;
60+
margin: 0px;
61+
padding: 0px;
62+
gap: 16px;
4863
}

0 commit comments

Comments
 (0)