html5 - Bootstrap row fixed as column header without afecting other divs in a container -


i have 3 column structure: left_sidebar center_content right_sidebar have fixed header (navbar) , fixed sidebars. want make 1 div (the top one) in center_content fixed.

<div class="container-fluid"> <div class="row-fluid"> <div class="span1">     <div class="sidebar-nav sidebar-nav-fixed">         <ul class="nav nav-list">             <li class="nav-header">sidebar</li>             <li class="active"><a href="#">link</a></li>             <li><a href="#">link</a></li>             <li><a href="#">link</a></li>             <li><a href="#">link</a></li>         </ul>     </div><!--/.well --> <!--sidebar content--> </div> <div class="span9">     <div class="row-fluid well-white">         <div class="span12">             <div class="row-fluid">                 <div class="span12 content-header">                     fluid 12 content container , options panel<hr>                 </div>             </div>             <div class="row-fluid">                 <div class="span9">                     fluid 9 content header                     <div class="row-fluid">                         <div class="span6">fluid 6 header division</div>                         <div class="span6">fluid 6 header division</div>                     </div>                     <div class="row-fluid">                         <div class="span12">fluid 12 real content here<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br></div>                     </div>                 </div>                 <div class="span3">fluid 3 sidebar advertisment fixed when scrolling</div>             </div>         </div>     </div> <!--body content--> </div> <div class="span2">     <div class="sidebar-nav sidebar-nav-fixed">         <ul class="nav nav-list">             <li class="nav-header">sidebar</li>             <li class="active"><a href="#">link</a></li>             <li><a href="#">link</a></li>             <li><a href="#">link</a></li>             <li><a href="#">link</a></li>         </ul>     </div><!--/.well --> </div>     </div> </div> 

there 2 options how want them scroll

first, fix .row-fluid well-white , in column, scroll second row-fluid. ea mean fix .content-header well.

the second make .content-header fix. (this option seems more realistic)

whenever try fix .content-header, overrides other divs (like on top of right sidebar , beneath rows below him)

update show i'm talking about, can view google plus profile page, guess need remake code use 3 column 'affix' javascript component

update2 example:

---------------------------------           fixed navbar --------------------------------- | flsb | content options | frsb | |      |-----------------|      | |      |  content here   |      | |      |                 |      | |      |                 |      | |      |                 |      | 

flsb - fixed left sidebar (span2)

frsb - fixed right sidebar (span2)

content options - fixed (span8)

navbar - fixed (span12)

content here - scrollable ^_^ (span8)


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -