My goal is to utilize the bootstrap style for a fixed navigation bar at the top of the page. By using navbar-fixed-top
, I can fix an element to the top. The visibility of #subnav
will be determined by the value of showsubnav
.
<div id="backnav">
<div id="topnav" class="container-fluid navbar-fixed-top">
<nav id="mainnav" class="navbar navbar-default"></nav>
<nav id="subnav" class="navbar navbar-inverse" ng-show="showsubnav"></nav>
</div>
</div>
I am trying to figure out how to make the height of #backnav
match that of #topnav
.