I'm having trouble aligning my search bar to the right side of the navigation menu items.
HTML:
<body>
<div id="navbox">
<nav id="nav">
<ul id="nav">
<li><a href="#">Home</a></li>
<li><a href="#">History</a></li>
<li><a href="#">Leaders</a></li>
<li><a href="#">Youth</a></li>
<li><a href="#">Links</a></li>
<li><a href="#">Contact</a></li>
<li>
<form method="get" action="/search" id="search">
<input name="q" type="text" size="40" placeholder="Search..." />
</form>
</li>
</ul>
</nav>
</div>
</body>
CSS:
form {
padding-left: 15px;
margin: 0;
}
Can you suggest a way to achieve this alignment?