title: two columns - with one fixed
body: <p>I have a Wordpress site the utilizes Bootstrap 3 framework. I have it set to have a a narrow column on the left, a larger column on the right (that has all the posts. I want the left column to stick in place while the right column scrolls.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$(document).ready(function() {
    var s = $("#nav");
    var pos = s.position();
    $(window).scroll(function() {
      var windowpos = $(window).scrollTop();
      if (windowpos &gt;= pos.top) {
        s.addClass("stick");
      } else {
        s.removeClass("stick");
      }
    });
  });</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.stick {
    position: fixed;
    top: 0;
    z-index: 100;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;div id="indx-wrap" class="row"&gt;
  
    &lt;div class="col-md-3"&gt;
      &lt;div id="nav"&gt;
        &lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin vitae sodales nunc, eu aliquet ex.&lt;/p&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  
    &lt;div class="col-md-9"&gt;
  
      &lt;?php if ( have_posts() ) : ?&gt;
  
      &lt;?php /* Start the Loop */ ?&gt;
      &lt;?php while ( have_posts() ) : the_post(); ?&gt;
      &lt;?php get_template_part( 'article'); ?&gt;
      &lt;?php endwhile; ?&gt;
  
      &lt;div class="clearfix"&gt;&lt;/div&gt;
  
      &lt;?php else : ?&gt;
  
      &lt;?php get_template_part( 'no-results', 'index' ); ?&gt;
  
      &lt;?php endif; ?&gt;
  
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>It sticks but doesn't keep the column width. It takes the content out of the flow and ruins the layout</p>
  
  <p>EDIT - visual representation page layout</p>
  
  <p><a href="https://i.stack.imgur.com/5y4KP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5y4KP.png" alt="enter image description here"></a></p>