Hey guys junior dev here and I'm having lots of issues with my webpage.
but the main one is a gap between my navigation links and the top of the navbar.
I have tried a lot of solutions but none seem to help. Really would appreciate any help even for other issues in the website. Please remember that the site is far from finished and I am a beginner.Thank you.
HTML:
<!DOCTYPE html>
<html>
<head>
<link href="dinnerdrone.css" rel="stylesheet"type="text/css"/>
<title>Dinner Drone Site</title>
</head>
<body>
<!-- Code for Header Navgation -->
<div id="topnav">
<ul >
<li class="link"><a href="dinnerdrone.html">Home</a></li>
<li class="link"><a href="contactus.html">Contact Us</a></li>
<li class="link"><a href="login.html">Log In</a></li>
<li class="link"><a href="signup.html">Sign Up</a></li>
<li class="link"><a href="aboutus.html">About Us</a></li>
</ul>
</div>
<!-- Code for title -->
<div id="title">
<p>Dinner Drone</p>
</div>
<!-- Code for subtitle -->
<div id="subtitle">
<p>Your favorite meals in the safest way</p>
</div>
CSS:
/* Body styles*/
body {
font-family:verdana,geneva,helvetica;
background-color: #0B0C10;
padding: 0;
margin: 0;
list-style: none;
text-decoration: none;
}
/* The navigation bar styles */
#topnav {
position: fixed;
top: 0;
bottom: 0;
background-color: #66FCF1;
text-decoration: none;
width: 100%;
height: 80px;
}
/* website navigation bar list styles*/
#topnav li {
background-color: white;
float: right;
}
/* website navigation bar link styles*/
#topnav a {
display: block;
padding-top: 20px;
padding-right: 15px;
padding-bottom: 17px;
height: 100%;
color: #66FCF1;
font-size: 22px;
text-decoration: none;
}
#topnav a:hover {
transition: 0.5s;
color: blue;
}
/* Style for web heading beneath topnav */
#title {
color: #66FCF1;
margin-left: auto;
margin-right: auto;
padding: 20px;
text-align: center;
font-size: 100px;
}
/* Style for text beneath title */
#subtitle {
background-color: #5CDB95;
margin-top: 20px;
text-align: center;
border: 1px solid black;
font-size: 30px;
}