gmaestro gmaestro - 1 year ago 77
CSS Question

Make a nav-bar top and nav-bar side fixed to screen

Here I'm using the twitter bootstrap 3 template:


class="navbar navbar-default navbar-static-top"
on the top
class="navbar-default navbar-static-side"

how I can make it fixed to screen?

I've tried with:
but that change my conception because I can't then see part of side bar...

Answer Source

On navbar-static-side, add css

position: fixed;
top: 65px;

On navbar, add

width: 100%;

That fixes them both to the page.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download