user6726108
user6726108

Reputation:

bootstrap sidebar fixed with content

i use affix bootstrap but don't work

i like set nav fix right and create content div with 12 grid.(create fixed sidebar)

code :

<section class="container-fluid">
<div class="affix navbar-side">
    nav
</div>
<div class="col-md-8">
    content
</div>
<section>

css :

.navbar-side{
    width: 400px;
}

when content full overflow data go to under nav sider i don't like.

How fixed this problem ?

https://jsfiddle.net/8f8c8wur/

Upvotes: 1

Views: 409

Answers (1)

Fitra Zul Fahmi
Fitra Zul Fahmi

Reputation: 123

I read in this, the affix is style that you must create by your own and put it in the data-spy, not in class..

<nav class="navbar navbar-inverse" data-spy="affix" data-offset-top="197">

Hope this help you..

Upvotes: 1

Related Questions