Relatively new to bootstrap, and not sure how to approach this at all. I am using this as my bootstrap menu, but would like to make it responsive
<div class="topnav">
<a class="active" href="/">Home</a>
<div class="search-container">
<form action="/search.php">
<input type="text" placeholder="Search..." name="searchterms" value=''>
<button type="submit"><i class="fa fa-search"></i></button>
</form>
</div>
<span id=login style='float:right'>
<a href="/contact-us.php">Contact Us</a>
<a href=/signin.php>Sign in</a>
<a href=/signup.up>Sign up</a>
</span>
</div>
I want to make it responsive, such that: a) when viewed on a phone/small device, it shows the 'hamburger' (3 lines) icon on the right, with the 'homepage' as the title b) If they click the icon, it 'expands', and first shows the "search" bar filling most of the the 2nd line, with the magnifying glass on the right beside the form field (I'm using fontawesome for icons) c) And of course, then the other menu items below that. d) It would also be nice to be able to have 'submenus' that are an 'accordian' style (i.e., so I might say have 2-3 submenus under contact, 2-3 submenus under sign in, etc, etc and if they clicked say 'contact' it would show the 2-3 submenus and collapse any other 'submenus' (only showing main menus).
How would I do this?
Thanks for your help!