I am currently working on designing a navigation bar featuring a dropdown menu.
I envision HOME, FIXTURES, RESULTS, LEADERBOARD all appearing on the same line. Specifically, I would like UPCOMING WEEK, MONTHS to be the dropdown children of FIXTURES, and GOALS, ASSISTS as the children of LEADERBOARD. Despite setting the display: inline property for the first level li tags, RESULTS and LEADERBOARD are displaying on separate lines. What could be causing this issue and what steps can I take to correct it?
<!DOCTYPE html>
<html>
<head>
<style>
.wrap{
text-align: center;
background-color: black;
margin: 0px;
padding: 10px;
}
.wrap>ul>li{
list-style: none;
display: inline;
padding: 40px;
}
.drop li{
list-style: none;
}
.wrap ul li a{
text-decoration: none;
font-size: 20px;
color:white;
}
</style>
</head>
<body>
<div class="wrap">
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">Fixtures</a></li>
<ul class="drop">
<li><a href="#">Upcoming Week</a></li>
<li><a href="#">Month</a></li>
</ul>
<li><a href="#">Results</a></li>
<li><a href="#">Leaderboard</a></li>
<ul class="drop">
<li><a href="#">Goals</a></li>
<li><a href="#">Assists</a></li>
</ul>
</ul>
</div>
</body>
</html>