Interstellar
Coder
Hi there, I was making my website when I noticed that there was a gap that gets filled up by other elements between the nav bar and the Header of the Page when I do not want that to happen. Do you think you could help?
CSS:
h1 {
float:left;
padding-top: 15px;
padding-right: 25px;
padding-left: 25px;
padding-bottom: 25px;
}
a {
color: #66ff00;
text-decoration: none;
}
.topnav a {
float: right;
padding-top: 25px;
text-align: center;
color: #66ff00;
padding-bottom: 25px;
padding-left: 10px;
padding-right: 10px;
}
HTML:
<header>
<div class="topnav">
<a href="Contact.html">Contact Us</a>
<a href="Join-us.html">Join Us</a>
<a href="Projects.html">Our Projects</a>
<a href="About.html">About Us</a>
<a href="#home" class="active">Home</a>
</div>
<div class="title">
<h1>Joshua Miles Foundation</h1>
</div>
</header>