I want to create a dual navigation bar (two lines) using Bootstrap.
The navbar template really doesn't match my design goals, which look something like this: (this demo)
+-------------+--------------------------------+ | title | | this part does not collapse +-------------+--------------------------------+ | two-line | two-line | | on smaller screens, | button | button | | collapses to 'hamburger' menu +----------------------------------------------+
It's hard for me to collapse the second line in the hamburger menu.
My code: (did it manually to achieve the look as above)
<table> <tr> (1 cell for title, 1 cell for rest of row) </tr> <tr class="nav2"> <td style="width:100%;" colspan="2"> <table style="width:600px;"> <tr> <td style="width:100%;"> <div class="container-fluid"> <div class="row"> <a href="#"><div class="col-xs-3"> <span class="link">Heatmap</span> </div></a> <a href="#"><div class="col-xs-3"> <span class="link">Basic<br>Reports</span> </div></a> <a href="#"><div class="col-xs-3"> <span class="link">Group-aware<br>Reports</span> </div></a> <a href="#"><div class="col-xs-3"> <span class="link">Auto Group<br>Identification</span> </div></a> </div> </div> </td> </tr> </table> </td> </tr> </table> (...)
I would replace the entire container fluid with a navigation bar, but then I could not achieve the design related in: (demo) . I tried to adjust the CSS options, but could not get the look and exact measurements.
Any way to make the second line collapsible on a mobile device, manually or otherwise, while preserving the design?
source share