gmaestro gmaestro - 1 year ago 59
CSS Question

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

Here I'm using the twitter bootstrap 3 template: http://startbootstrap.com/templates/sb-admin-v2/

and

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


how I can make it fixed to screen?

I've tried with:
navbar-fixed-top
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

position:fixed;
width: 100%;

That fixes them both to the page.

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