Skip to content

Instantly share code, notes, and snippets.

@koentjuh1
Last active August 30, 2016 11:42
Show Gist options
  • Save koentjuh1/e808df80f6be8333c11c48c81aa53b38 to your computer and use it in GitHub Desktop.
Save koentjuh1/e808df80f6be8333c11c48c81aa53b38 to your computer and use it in GitHub Desktop.
Sticky sidebar
<div class="container">
<div class="row">
<div class="col-sm-9 main-content">
<h1>Main content</h1>
</div>
<div class="col-sm-3 sidebar">
<div class="theiaStickySidebar">
<h3>Sidebar</h3>
</div>
</div>
</div>
</div>
$(document).ready(function(){
$('.sidebar').theiaStickySidebar({
additionalMarginTop: 100
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment