I am trying to create a responsive Bootstrap 3 navigation bar with two lines. However, I am having problems with the HTML structure and collapse functionality.
Below is a visual description of the desired result, and I was hoping that someone could point me in the right direction in terms of HTML / CSS (with the maximum possible functionality by default Bootstrap).
In essence, it is desirable to do the following:
On tablet / desktop devices, the first line is the logo and menu of the small secondary links (Link1-3). The second line is the main menu with the main links (LinkA-E).
On a mobile device, the classic collapse design should appear with the logo and icon of a hamburger. The advanced menu should first show the main links (LinkA-E), and then the secondary links (Link1-3).
Tablet / Desktop device:
|----------------------------------------------------------| | LOGO/BRAND Link1 Link2 Link3 | |----------------------------------------------------------| | LinkA LinkB LinkC LindD LinkE | |----------------------------------------------------------|
Mobile device (wrinkled):
|--------------------------------------| | LOGO/BRAND HAMBURGER | |--------------------------------------|
Mobile device (extended):
|--------------------------------------| | LOGO/BRAND HAMBURGER | |--------------------------------------| | LinkA | | LinkB | | LinkC | | LinkD | | LinkE | |--------------------------------------| | Link1 | | Link2 | | Link3 | |--------------------------------------|
twitter-bootstrap twitter-bootstrap-3 navbar
preyz
source share