Trying to do on bootstrap (e). There is a container with a background in which there are 3 rows in which logos, a button, and a group of buttons lie. Under them you need to also place a menu, for example, a standard navbar so that it would become attached to the predecessor element and when reducing the expansion of the screen (and associated with this decrease the height of the background image that) did not say how it went. Threat over all this disgrace will still be hung js which will change the height of the header, reducing it when scrolling down the page.
Tell me how to properly position the elements so that this standard navbar would “stick” to the element located above and not depend on the height of this element?
This is how it looks without a margin (s) on the normal screen.
Looks like this on mobile devices. 
