I can't figure out how to remove this space from my navbar and the picture..
The CSS code I have for the navbar and the image is:
a {
text-decoration: none;
color: white;
padding-right: 5px;
padding-left: 5px;
padding-top: 0;
}
a:hover {
color: black;
}
header {
background-color: #C0C0C0;
margin: 3px 60px 0;
}
li {
display: inline;
border-right: 1px solid black;
border-left: 1px solid black;
border-bottom: 1px solid black;
border-top-left-radius: 0px;
border-top-right-radius: 0px;
border-bottom-left-radius: 5px;
border-bottom-right-radius: 5px;
}
nav {
position: relative;
text-align: center;
}
ul {
list-style-type: none;
}
#bikebanner {
position: relative;
left: 65px;
}
#bikebanner
is the image id.
And the html goes like so:
<header>
<img src="images/bicyclebanner.jpg" id="bikebanner" alt="People riding bikes." title="Biking">
<h1 id="pagetitle"><a href="Lab04.html">Cycling Tours</a></h1>
<nav>
<ul>
<li><a href="aboutUs.html">About Us</a></li>
<li><a href="#askUs">Ask Us</a></li>
<li><a href="#destinations">Destinations</a></li>
<li><a href="#faq">FAQ</a></li>
<li><a href="#reviews">Reviews</a></li>
<li><a href="#seminars">Seminars</a></li>
<li><a href="#tripPrep">Trip Prep</a></li>
</ul>
</nav>
</header>
Looking for a universal fit as I have other things with white space between them as well.
Thanks.