문제

I am attempting to learn Rails layouts and am trying to do so using the bootstrap-sass gem.

I want to add a navbar to the top of my view, as well as the side. The bars should connect fluidly, with no breaks in between the two.

I have made it as far as adding a top navbar, but now I need to add a sidebar to the left. There doesn't seem to be a "navbar left" feature within Twitter Bootstrap. How can I add a menu to the left as well as the top within my rails layout?

도움이 되었습니까?

해결책

There is a class called navbar-left that will left justify that component in the navbar (check out the Documentation

You could also create a nav (see the Documentation and add the classes nav-stacked and pull-left

Hope this helps

다른 팁

You could try using navs or list groups. Two of many ways to go about it.

Don't forget about .pull-left!

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top