I have a nav bar at the right of an column that need to be fixed at the top of the container. The problem is when the nav is fixed, I am not able to align it correctly at the right of the left column... I can align it by using col-md-offset-xx but if the browser width change the nav will be not aligned anymore.
https://jsfiddle.net/DTcHh/18665/
<div style="width:1170px;margin:10px auto;position:relative;padding:10px;border:1px solid black;">
<div class="row">
<div class="col-md-9" style="border:1px solid green;">
<h1>left column</h1>
<h1>left column</h1>
<h1>left column</h1>
<h1>left column</h1>
<h1>left column</h1>
<h1>left column</h1>
<h1>left column</h1>
<h1>left column</h1>
<h1>left column</h1>
<h1>left column</h1>
<h1>left column</h1>
<h1>left column</h1>
<h1>left column</h1>
</div>
<div class="col-md-3 col-md-offset-6" style="border:1px solid red;position:fixed;top:0px;">
<h1>Right column</h1>
</div>
</div>
</div>