I am wanting to have a Bootstrap 3 navbar that has two rows with navigation elements, and with navbar-brand spanning both rows. On SM+ screen sizes both rows are visible. On XS screen sizes the second row collapses and shows the icon-bar to open.
SM+
+-------------------------------------------------------------------------------+
| | Nav-A-1 Nav-A-2 |
| SITE LOGO |---------------------------------------------------------------+
| | Nav-B-1 Nav-B-2 Nav-B-3 Nav-B-4 Form-Right |
+-------------------------------------------------------------------------------+
XS
+-------------------------------------------------------------------------------+
| | Nav-A-1 Nav-A-2 |
| SITE LOGO |---------------------------------------------------------------+
| | Nav-Collapsed Hamburger |
+-------------------------------------------------------------------------------+
How could this be done with the navbar?
You can essentially use two navbars and then use
position: absolute
for your image. You could potentially use the grid but your collapse menu won't be full-width on mobile most likely then.Working Example:
Try this. On SM+ screen sizes both rows are visible. On XS screen sizes the second row collapses and shows the icon-bar to open at right side.
Have look in below code snippet