Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

298
Views
How to keep sidebar layout fixed, not scrollable with bootstrap?

I am trying to make a simple admin panel. I added a sidebar as layout. I want to keep it fixed. But when I scroll down the page my sidebar also scrolls down. Here is how it looks at the beginning of page:

enter image description here

And when I scroll down the page:

enter image description here

I want to keep it as in picture 1 even the page is scrolled down. The beginning of siderbar is like this:

<ul class="navbar-nav bg-gradient-primary sidebar sidebar-dark accordion" id="accordionSidebar" style="max-height:100%">

Edit: I tried .navbar-nav { position: fixed; left: 0; top: 0; bottom: 0, width: 150px; } and result is: enter image description here

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Try this way

<div class="container-fluid">
    <div class="row">
        <div class="col-md-3 px-1 bg-dark position-fixed">
            ...
        </div>
        <div class="col-md-offset-3 col-md-9 col-sm-12">
            <h1>Main Area</h1>
            ...
        </div>
    </div>
</div>
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!