Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bootstrap fixed content pane

Is there a "clean" way to make a bootstrap standard 2-column layout with the sidebar (a list of items) long and scrollable and the main content area fixed? I would like to use the main content area to inject ajax content by intercepting the links on the left, so I would like it to stay always visible.

like image 623
freethrow Avatar asked Dec 31 '25 18:12

freethrow


1 Answers

Just add position: fixed to your sidebar class, and style as you see fit. See an example with Bootstrap here: http://jsfiddle.net/eterpstra/nxrpu/1/

like image 120
eterps Avatar answered Jan 02 '26 10:01

eterps



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!