Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bootstrap3: fixed nav on the left

I am setting up a site with bootstrap 3 and the idea is to have a column on the left reserved for the navigation and on the right the content of the site:

http://jsbin.com/iQIKUli/3

The position of the nav should be fixed and without margin on the left and on the top. I have tryied with position:fixed and position:absolute but the problem is that the content of the site override the navbar.

How can i make properly a fixed navbar on the left? How can i avoid that the content of the site override the navbar?

Thank you very much!

like image 857
FrancescoMussi Avatar asked Nov 07 '13 12:11

FrancescoMussi


People also ask

How do I move the navbar brand to the left?

To align the navbar logo to the left of the screen with the Bootstrap method is a quick trick that can save you from writing extra CSS. In this, we simply add another div tag above the div tag having class navbar navbar-expand-lg navbar-light bg-light fixed-top py-lg-0.

How do I move NAV links to the right?

ml-auto class in Bootstrap can be used to align navbar items to the right. The . ml-auto class automatically aligns elements to the right.

How do I keep my Bootstrap navbar fixed?

Set the navbar fixed to the top, add class . navbar-fixed-top to the . navbar class.


1 Answers

I would suggest you remove the outer container, and use 'row' since there is no longer row-fluid in BS 3.

http://bootply.com/92472

like image 62
Zim Avatar answered Oct 06 '22 15:10

Zim