Is there a way to centrally position the collapse button on the navbar without knowing its height in advance? One potential solution could be:
.navbar-toggler {
top: 0;
bottom: 0;
margin-top: auto;
margin-bottom: auto;
height: 40; /*adjust as needed*/
}
As a result, the button is vertically aligned. However, clicking on it expands the menu and causes it to center on the text, which may not be desired. Feel free to experiment with this concept here:
https://codepen.io/anon/pen/ZKbJJV
In addition, I am looking for a solution where the logo floats right when in "mobile view". Is there a way to achieve this without relying on media queries?