Skip to content

Commit

Permalink
Merge pull request #312 from santoshsimhadri2211/main
Browse files Browse the repository at this point in the history
Navbar Added
  • Loading branch information
IshitaSatpathy authored Oct 29, 2022
2 parents 32133e2 + c238b62 commit 9e79834
Show file tree
Hide file tree
Showing 2 changed files with 71 additions and 0 deletions.
27 changes: 27 additions & 0 deletions Santosh Navbar 2/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Best Online Food Delivery/Foodiephile.com</title>
<link rel="stylesheet" href="style.css">
<link
href="https://fonts.googleapis.com/css2?family=Dancing+Script&family=Fascinate&family=Indie+Flower&family=Kdam+Thmor+Pro&family=Macondo&family=My+Soul&family=Orbitron&family=Shadows+Into+Light&family=Tapestry&display=swap"
rel="stylesheet"
/>
</head>

<body>
<nav id="navbar">

<ul>
<li class="item"><a href="">Home</a></li>
<li class="item"><a href="">Services</a></li>
<li class="item"><a href="">About Us</a></li>
<li class="item"><a href="">Contact Us</a></li>
</ul>
</nav>
</body>
</html>

44 changes: 44 additions & 0 deletions Santosh Navbar 2/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@

*{
margin: 0;
padding: 0;
}

:root{
--navbar-height:59px;
}

#navbar{
display: flex;
align-items: center;
position: relative;
top: 0;
}

#navbar ul{
display: flex;
}
#navbar::before{
content: "";
background-color: rgb(0, 0, 0);
position: absolute;
height: 100%;
width: 100%;
z-index: -1;
opacity: 0.4;
}
#navbar ul li{
list-style: none;
font-size: 1.3rem;
}
#navbar ul li a{
color: rgb(32, 233, 247);
display: block;
padding: 30px 20px;
border-radius: 20px;
text-decoration: none;
}
#navbar ul li a:hover{
color: rgb(101, 9, 9);
background-color: aqua;
}

0 comments on commit 9e79834

Please sign in to comment.