I am making a website for my school's rowing team, and I can't seem to get the links in the navigation bar to work. I've tried to switch the <p>
and <a>
tags around and change the z-index
of the elements.
HTML:
<body>
<header class="horizontalDiv">
<img src="http://www.computer-wallpaper-backgrounds.com/wallpaper/1680x1050/cool-backgrounds/water-ripples-background.jpg" id="headerPic"/>
<div id="titleContainer">
<b><p id="title">*** Crew Team</p></b>
</div>
<div class="horizontalDiv" id="navigation">
<div class="nav" id="home">
<p><a href="https://www.google.com/?gws_rd=ssl">Home</a></p>
</div>
<div class="nav" id="rowingSeason">
<a><p>Rowing Season</p></a>
</div>
<div class="nav" id="basicsOfCrew">
<a><p>Basics of Crew</p></a>
</div>
<div class="nav" id="registration">
<a><p>Registration</p></a>
</div>
<div class="nav" id="documents">
<a><p>Documents</p></a>
</div>
<div class="nav" id="pictures">
<a><p>Pictures</p></a>
</div>
<div class="nav" id="news">
<a><p>News</p></a>
</div>
<div class="nav" id="boosters">
<a><p>Boosters</p></a>
</div>
</div>
</header>
</body>
CSS:
.horizontalDiv {
width: 104%;
}
header {
height: 200px;
border-bottom: 3.5px solid black;
margin: -10px 0px 0px -10px;
}
#headerPic {
width: 100%;
height: 100%;
z-index: 1;
opacity: .5;
}
#title {
color: #b91a2f;
font-size: 30px;
font-family: verdana;
}
#titleContainer {
z-index: 100;
margin-top: -170px;
margin-left: 65px;
}
.nav {
z-index: 99;
height: 100%;
width: 11.3%;
margin: 15px 0px 0px -3px;
display: inline-block;
border-left: 3px solid black;
border-right: 3px solid black;
}
.nav p {
text-align: center;
font-family: verdana;
font-size: 16px;
color: black;
}
I just had the link go to google for right now.