Skip to content

Commit c520a6c

Browse files
💡 Build Navbar using CSS Flex
1 parent 421fcc2 commit c520a6c

File tree

1 file changed

+67
-0
lines changed

1 file changed

+67
-0
lines changed

‎Responsive-Navbar.html

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
4+
<head>
5+
<title>Responsive Navbar</title>
6+
<!--CSS tag-->
7+
<style>
8+
body {
9+
padding: 0;
10+
margin: 0;
11+
font-family: 'Oswald', sans-serif;
12+
}
13+
14+
nav {
15+
width: 100%;
16+
height: 50px;
17+
background-color: #0A2647;
18+
display: flex;
19+
flex-direction: row;
20+
justify-content: space-around;
21+
}
22+
23+
h1 {
24+
font-size: 25px;
25+
font-weight: 400;
26+
align-self: center;
27+
color: white;
28+
}
29+
30+
ul {
31+
list-style: none;
32+
display: flex;
33+
align-items: center;
34+
}
35+
36+
ul li {
37+
font-weight: 300;
38+
color: white;
39+
margin: 0 30px;
40+
}
41+
42+
43+
44+
</style>
45+
46+
<!--Google Fonts Link-->
47+
<link rel="preconnect" href="https://fonts.googleapis.com">
48+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
49+
<link href="https://fonts.googleapis.com/css2?family=Oswald:wght@200;300;400;500;600;700&display=swap"
50+
rel="stylesheet">
51+
</head>
52+
53+
<body>
54+
55+
<nav>
56+
<h1>Shakir.dev</h1>
57+
<ul>
58+
<li>Home</li>
59+
<li>About</li>
60+
<li>Services</li>
61+
<li>Contact</li>
62+
</ul>
63+
</nav>
64+
65+
</body>
66+
67+
</html>

0 commit comments

Comments
 (0)