Skip to content

Commit ebffcfe

Browse files
committed
Added nav bar
1 parent 2eafd55 commit ebffcfe

File tree

2 files changed

+45
-0
lines changed

2 files changed

+45
-0
lines changed

css/style.css

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,33 @@
44
body {
55
font-family: 'Roboto', sans-serif;
66
-webkit-font-smoothing: antialiased;
7+
margin: 0;
8+
padding: 0;
9+
}
10+
11+
.navbar ul {
12+
list-style: none;
13+
padding: 0;
14+
margin: 0;
15+
background: #bd1e43;
16+
text-align: right;
17+
}
18+
19+
.navbar li{
20+
display: inline-block;
21+
}
22+
23+
.navbar a {
24+
text-decoration: none;
25+
color: #fff;
26+
width: 100px;
27+
display: block;
28+
padding: 25px 20px;
29+
text-align: center;
30+
}
31+
32+
.navbar a:hover{
33+
background: #353640;
734
}
835

936
/**

index.html

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,23 @@
1515
<!-- Remember: Use semantic HTML tags like <header>, <main>, <nav>, <footer>, <section> etc -->
1616
<!-- All the images you need are in the 'img' folder -->
1717

18+
<!--This is the nav bar-->
19+
20+
<div class="navbar">
21+
<ul>
22+
<li><a href="#meetkarma">Meet Karma</a></li>
23+
<li><a href="#howitworks">How it works</a></li>
24+
<li><a href="#store">Store</a></li>
25+
<li><a href="#blog">Blog</a></li>
26+
<li><a href="#help">Help</a></li>
27+
<li><a href="#login">Login</a></li>
28+
</ul>
29+
</div>
30+
31+
32+
33+
34+
35+
1836
</body>
1937
</html>

0 commit comments

Comments
 (0)