Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7543091
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T08:20:15+00:00 2026-05-30T08:20:15+00:00

Is it possible to make sidebar navigation stay always fixed on scroll in fluid

  • 0

Is it possible to make sidebar navigation stay always fixed on scroll in fluid layout?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T08:20:16+00:00Added an answer on May 30, 2026 at 8:20 am

    Note: There is a bootstrap jQuery plugin that does this and so much more that was introduced a few versions after this answer was written (almost two years ago) called Affix. This answer only applies if you are using Bootstrap 2.0.4 or lower.


    Yes, simply create a new fixed class for your sidebar and add an offset class to your content div to make up for the left margin, like so:

    CSS

    .sidebar-nav-fixed {
        padding: 9px 0;
        position:fixed;
        left:20px;
        top:60px;
        width:250px;
    }
    
    .row-fluid > .span-fixed-sidebar {
        margin-left: 290px;
    }
    

    Demo: http://jsfiddle.net/U8HGz/1/show/
    Edit here: http://jsfiddle.net/U8HGz/1/

    Update

    Fixed my demo to support the responsive bootstrap sheet, now it flows with the responsive feature of the bootstrap.

    Note: This demo flows with the top fixed navbar, so both elements become position:static upon screen resize, i placed another demo below that maintains the fixed sidebar until the screen drops for mobile view.

    CSS

    .sidebar-nav-fixed {
         position:fixed;
         top:60px;
         width:21.97%;
     }
    
     @media (max-width: 767px) {
         .sidebar-nav-fixed {
             width:auto;
         }
     }
    
     @media (max-width: 979px) {
         .sidebar-nav-fixed {
             position:static;
            width: auto;
         }
     }
    

    HTML

    <div class="container-fluid">
    <div class="row-fluid">
     <div class="span3">
       <div class="well sidebar-nav sidebar-nav-fixed">
        ...
       </div><!--/.well -->
     </div><!--/span-->
     <div class="span9">
        ...
     </div><!--/span-->
    </div><!--/row-->
    
    </div><!--/.fluid-container-->
    

    Demo, edit here.

    minor note: there is about a 10px/1% difference on the width of the fixed sidebar, its due to the fact that since it doesn’t inherit the width from the span3 container div because it is fixed i had to come up with a width. It’s close enough.

    And here is another method if you want to keep the sidebar fixed until the grid drops for small screen/mobile view.

    CSS

    .sidebar-nav-fixed {
        position:fixed;
        top:60px;
        width:21.97%;
    }
    
    @media (max-width: 767px) {
        .sidebar-nav-fixed {
            position:static;
            width:auto;
        }
    }
    
    @media (max-width: 979px) {
        .sidebar-nav-fixed {
            top:70px;
        }
    }
    

    Demo, edit here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to create a layout using a fixed header and sidebar but
Is it possible make some handler that will do something when user shutdown computer
Possible Duplicate: Make iPhone app paid version replace free version on install from app
is possible to make own help message or attach own event on help option
How is it possible to make prototype methods in C#.Net? In JavaScript, I can
Is it possible to make a site with ASP.NET MVC Framework using .NET 2.0?
Is it possible to make it appear to a system that a key was
Is it possible to make such buttons ( http://img225.imageshack.us/img225/6452/buttonslw9.jpg ) using CSS? It should
Is it possible to make efficient queries that use the complete regular expression feature
Is it possible to make a POST request from Ruby with open-uri?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.