A margin-right:-15px
is being applied to .navbar-nav.navbar-right:last-child
in bootstrap.min.css
which is pulling the search box to right. To fix this override this style by adding the below style in your stylesheet
@media (min-width: 768px)
.navbar-nav.navbar-right:last-child {
margin-right:10px; // add the value you need
}
About the drop-down check if the below fiddle will help you
Fiddle
Note: I have only included the Jquery in the fiddle to add the open
class name, so i am not sure whether the changes i made will affect the other things you have used for offset.