My navigation bar includes a search form, multiple links, and a dropdown link leading to additional links.
Unfortunately, I'm struggling to align everything on the same line within the navbar.
This is the current output: View My HTML Page
Below is the code snippet:
<!DOCTYPE html>
<html lang="en">
... (omitting the style details for brevity)
</style>
</head>
<body>
<div class="topnav">
<a class="active" href="#home">Home</a>
<a href="#about">About</a>
<a href="#contact">Contact</a>
<div class="dropdown"&g
... (dropdown menu content omitted)
<div class="search-container">
<form action="/action_page.php">
<input type="text" placeholder="Search.." name="search">
<button type="submit"><i class="fa fa-search"></i></button>
</form>
</div>
</div>
</body>
</html>
The dropdown link appears misaligned with the other links. Is there a way to position the 'dropdown' link in line with the rest of the links while keeping the dropdown content hidden until hovered over? Any input or suggestions are greatly appreciated as I've been stuck on this challenge all day.