In bootstrap documentation they\'re able to \"trap\" a .navbar-fixed-top inside their .bs-docs-example div:
.navbar-fixed-top
.bs-docs-example
...
That works with built-in Bootstrap's CSS.