Hello!
I am new to CSS and HTML-- I feel like this should be easy but i can't figure it out.
This website was made by someone else and i am tasked with created a dropdown tab on one of the links.
Here is the page for some background: https://earlyyearsinc.com/community.html
I need "Testimonials" to be a dropdown under "Resources"
I have tried with the help of some CSS online but nothing will work.. i think it is because of how the CSS is set up already??? i'm really not sure.
This is the HTML for the menu bar:
[CODE lang="html" title="Menu Bar"]<header>
<div class="logo">
<a href="index.html"><img src="images/eycc_logo.png" alt="Early Years Community Learning Centers"></a>
</div>
<nav id="nav">
<label for="show-menu" class="show-menu" onclick>Menu</label>
<input type="checkbox" id="show-menu" role="button">
<ul id="menu">
<li><a href="locations.html">Locations</a></li>
<li><a href="classrooms.html">Classrooms</a></li>
<li><a href="rates.html">Rates</a></li>
<li><a href="registration.html">Registration</a></li>
<li><a href="resources.html">Resources</a></li>
<li><a href="careers.html">Careers</a></li>
<li class="active"><a href="community.html">Community Events</a></li>
<li><a href="testimonials.html">Testimonials</a></li>
</ul>
</nav>
</header>[/CODE]
This is the CSS
[CODE lang="css" title="CSS"]nav {
width: 100%;
margin: 0 auto;
padding: 0;
background: #f2f3ee;
z-index: 9999;
}
/*Display the dropdown on hover*/
nav ul li a:hover + .hidden, .hidden:hover, .hidden:active, .hidden:focus {
opacity: 1;
visibility: visible;
z-index: 9999;
}
nav ul {
margin: 0;
padding: 0;
list-style: none;
position: relative;
}
nav ul:after {
content: "";
clear: both;
display: block;
}
nav ul li {
width: 14.28%;
margin: 0;
padding: 0;
float: left;
font: 20px Aleo, Times, serif;
text-align: center;
border-bottom: 4px solid #c76ca3;
}
nav ul li:hover, .active {
border-bottom: 4px solid #8c2e6a;
}
nav ul li a {
display: block;
margin: 0;
padding: 15px 0;
color: #8c2e6a;
text-decoration: none;
}
/*Style 'show menu' label button and hide it by default*/
.show-menu {
text-decoration: none;
color: #8c2e6a;
text-align: center;
margin: 0;
padding: 10px 0;
font: 20px Aleo, Times, serif;
display: none;
background: #f2f3ee;
cursor: pointer;
border-bottom: 4px solid #c76ca3;
}
[/CODE]
If you have read to here.. thank you for your time.
I am new to CSS and HTML-- I feel like this should be easy but i can't figure it out.
This website was made by someone else and i am tasked with created a dropdown tab on one of the links.
Here is the page for some background: https://earlyyearsinc.com/community.html
I need "Testimonials" to be a dropdown under "Resources"
I have tried with the help of some CSS online but nothing will work.. i think it is because of how the CSS is set up already??? i'm really not sure.
This is the HTML for the menu bar:
[CODE lang="html" title="Menu Bar"]<header>
<div class="logo">
<a href="index.html"><img src="images/eycc_logo.png" alt="Early Years Community Learning Centers"></a>
</div>
<nav id="nav">
<label for="show-menu" class="show-menu" onclick>Menu</label>
<input type="checkbox" id="show-menu" role="button">
<ul id="menu">
<li><a href="locations.html">Locations</a></li>
<li><a href="classrooms.html">Classrooms</a></li>
<li><a href="rates.html">Rates</a></li>
<li><a href="registration.html">Registration</a></li>
<li><a href="resources.html">Resources</a></li>
<li><a href="careers.html">Careers</a></li>
<li class="active"><a href="community.html">Community Events</a></li>
<li><a href="testimonials.html">Testimonials</a></li>
</ul>
</nav>
</header>[/CODE]
This is the CSS
[CODE lang="css" title="CSS"]nav {
width: 100%;
margin: 0 auto;
padding: 0;
background: #f2f3ee;
z-index: 9999;
}
/*Display the dropdown on hover*/
nav ul li a:hover + .hidden, .hidden:hover, .hidden:active, .hidden:focus {
opacity: 1;
visibility: visible;
z-index: 9999;
}
nav ul {
margin: 0;
padding: 0;
list-style: none;
position: relative;
}
nav ul:after {
content: "";
clear: both;
display: block;
}
nav ul li {
width: 14.28%;
margin: 0;
padding: 0;
float: left;
font: 20px Aleo, Times, serif;
text-align: center;
border-bottom: 4px solid #c76ca3;
}
nav ul li:hover, .active {
border-bottom: 4px solid #8c2e6a;
}
nav ul li a {
display: block;
margin: 0;
padding: 15px 0;
color: #8c2e6a;
text-decoration: none;
}
/*Style 'show menu' label button and hide it by default*/
.show-menu {
text-decoration: none;
color: #8c2e6a;
text-align: center;
margin: 0;
padding: 10px 0;
font: 20px Aleo, Times, serif;
display: none;
background: #f2f3ee;
cursor: pointer;
border-bottom: 4px solid #c76ca3;
}
[/CODE]
If you have read to here.. thank you for your time.