Prevent bootstrap navbar-inverse toggle pushing contents -
i want prevent bootstrap navbar-inverse toggle pushing contents in mobile view. tried several tricks like:
$('.navbar-collapse').on('shown.bs.collapse', function() { $('.navbar').addclass("navbar-fixed-top"); }); $('.navbar-collapse').on('hidden.bs.collapse', function() { $('.navbar').removeclass("navbar-fixed-top"); });
or
$('.navbar-collapse').on('shown.bs.collapse', function() { $('.navbar').css({'position':'absolute'}); }); $('.navbar-collapse').on('hidden.bs.collapse', function() { $('.navbar').css({'position':'relative'}); });
but either deforming page or navbar itself. don't want use fixed top navbar because of page design. asking workaround suggestions?
Comments
Post a Comment