Div moves below another div when window resized

Darren Baker picture Darren Baker · Aug 31, 2012 · Viewed 10.7k times · Source

When I resize the browser window my navigation bar div drops below the search box div. How can I stop the nav bar moving and keep it in the same place? The footer behaves itself and its structured in the same way?

Here's a link...

http://www.signport.co.uk/test/asg_template3.html

Thanks!

Answer

Clyde Lobo picture Clyde Lobo · Aug 31, 2012

This happens because your menu does not have a width specified. Whereas you footer behaves because it has a width specified( div with id footerleft)