Need some help with my code. I have a header that I don't want to change much, but I'd like to add a dropdown menu without using a list. Here's my code:
<!-- Navigation Bar -->
<div class="navbar">
<div class="button_l"><a href="Main_Page.html"> Home </a></div>
<div class="button"><a href="About.html"> About </a></div>
<div class="button"><a href="History.html"> History </a></div>
<div class="button"><a href="Breakdown.html"> Breakdown </a></div>
<div class="button_r"><a href="#"> Yeah </a></div>
</div>
CSS:
.navbar {
width: 90%;
height: 30px;
font-family: 'Press Start 2P', cursive;
font-size: 15px;
line-height: 25px;
position: absolute;
border: 2px solid;
border-radius: 250px;
background: url("../images/navbar.png") repeat-x;
margin-left: 50px;
}
.button a {
float: left;
width: 20%;
height: 30px;
text-align: center;
text-decoration: none;
}
.button_l a {
float: left;
width: 20%;
height: 30px;
text-align: center;
text-decoration: none;
}
.button_r a {
float: left;
width: 20%;
height: 30px;
text-align: center;
text-decoration: none;
}
.button a:hover {
float: left;
color: #fff;
width: 20%;
height: 30px;
text-align: center;
text-decoration: none;
background: url("../images/navbar_roll.png") repeat-x;
}
.button_l a:hover {
float: left;
color: #fff;
width: 20%;
height: 30px;
text-align: center;
text-decoration: none;
border-top-left-radius: 250px;
border-bottom-left-radius: 250px;
background: url("../images/navbar_roll.png") repeat-x;
}
.button_r a:hover {
float: left;
color: #fff;
width: 20%;
height: 30px;
text-align: center;
text-decoration: none;
border-top-right-radius: 250px;
border-bottom-right-radius: 250px;
background: url("../images/navbar_roll.png") repeat-x;
}
Want to add a dropdown menu for the "Breakdown" button without using ul and li tags. How can I achieve this with just HTML and CSS? Thanks!
No JavaScript, keep it simple and pure.