-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #312 from santoshsimhadri2211/main
Navbar Added
- Loading branch information
Showing
2 changed files
with
71 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |