title: How to position content beside sidebar?
body: <p>I am not very well versed in HTML and CSS. I am currently building a web application using Django and I integrated a sidebar into my web application using Bootstrap, but it has messed my layouts, and I can't seem to figure out how to move the content in a block to the left of side of my sidebar.</p>
  <p><a href="https://i.stack.imgur.com/QxlHc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QxlHc.png" alt="part 1 layout" /></a></p>
  <p><a href="https://i.stack.imgur.com/CzhIs.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CzhIs.png" alt="part 2 layout" /></a></p>
  <p>As seen in the pictures above, my sidebar is located at the top and my content is located at the bottom. Below are my codes for my sidebar and the base template.</p>
  <p>sidebar_template.html</p>
  <pre><code>&lt;div class=&quot;d-flex flex-column vh-100 flex-shrink-0 p-3 text-white bg-dark sidebar-height&quot; style=&quot;width: 250px;&quot;&gt; &lt;a href=&quot;/&quot; class=&quot;d-flex align-items-center mb-3 mb-md-0 me-md-auto text-white text-decoration-none&quot;&gt; &lt;svg class=&quot;bi me-2&quot; width=&quot;40&quot; height=&quot;32&quot;&gt; &lt;/svg&gt; &lt;span class=&quot;fs-4&quot;&gt;CPRS Admin&lt;/span&gt; &lt;/a&gt;
      &lt;hr&gt;
      &lt;ul class=&quot;nav nav-pills flex-column mb-auto&quot;&gt;
          &lt;li class=&quot;nav-item&quot;&gt; &lt;a href=&quot;#&quot; class=&quot;nav-link active&quot; aria-current=&quot;page&quot;&gt; &lt;i class=&quot;fa fa-home&quot;&gt;&lt;/i&gt;&lt;span class=&quot;ms-2&quot;&gt;Home&lt;/span&gt; &lt;/a&gt; &lt;/li&gt;
          &lt;li&gt; &lt;a href=&quot;{% url 'coordinator_dashboard' %}&quot; class=&quot;nav-link text-white&quot;&gt; &lt;i class=&quot;fa fa-dashboard&quot;&gt;&lt;/i&gt;&lt;span class=&quot;ms-2&quot;&gt;Dashboard&lt;/span&gt; &lt;/a&gt; &lt;/li&gt;
          &lt;li&gt; &lt;a href=&quot;{% url 'coordinator_view_students' %}&quot; class=&quot;nav-link text-white&quot;&gt; &lt;i class=&quot;fa fa-first-order&quot;&gt;&lt;/i&gt;&lt;span class=&quot;ms-2&quot;&gt;Students&lt;/span&gt; &lt;/a&gt; &lt;/li&gt;
          &lt;li&gt; &lt;a href=&quot;#&quot; class=&quot;nav-link text-white&quot;&gt; &lt;i class=&quot;fa fa-cog&quot;&gt;&lt;/i&gt;&lt;span class=&quot;ms-2&quot;&gt;Settings&lt;/span&gt; &lt;/a&gt; &lt;/li&gt;
          &lt;li&gt; &lt;a href=&quot;#&quot; class=&quot;nav-link text-white&quot;&gt; &lt;i class=&quot;fa fa-bookmark&quot;&gt;&lt;/i&gt;&lt;span class=&quot;ms-2&quot;&gt;Bookmarks&lt;/span&gt; &lt;/a&gt; &lt;/li&gt;
      &lt;/ul&gt;
      &lt;hr&gt;
      &lt;div class=&quot;dropdown&quot;&gt; &lt;a href=&quot;#&quot; class=&quot;d-flex align-items-center text-white text-decoration-none dropdown-toggle&quot; id=&quot;dropdownUser1&quot; data-bs-toggle=&quot;dropdown&quot; aria-expanded=&quot;false&quot;&gt; &lt;img src=&quot;https://github.com/mdo.png&quot; alt=&quot;&quot; width=&quot;32&quot; height=&quot;32&quot; class=&quot;rounded-circle me-2&quot;&gt; &lt;strong&gt; John W &lt;/strong&gt; &lt;/a&gt;
          &lt;ul class=&quot;dropdown-menu dropdown-menu-dark text-small shadow&quot; aria-labelledby=&quot;dropdownUser1&quot;&gt;
              &lt;li&gt;&lt;a class=&quot;dropdown-item&quot; href=&quot;#&quot;&gt;New project&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a class=&quot;dropdown-item&quot; href=&quot;#&quot;&gt;Settings&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a class=&quot;dropdown-item&quot; href=&quot;#&quot;&gt;Profile&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;
                  &lt;hr class=&quot;dropdown-divider&quot;&gt;
              &lt;/li&gt;
              &lt;li&gt;&lt;a class=&quot;dropdown-item&quot; href=&quot;#&quot;&gt;Sign out&lt;/a&gt;&lt;/li&gt;
          &lt;/ul&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  <p>base.html</p>
  <pre><code>{% load static %}
  
  &lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
      &lt;title&gt;Capstone Project&lt;/title&gt;
      &lt;link href=&quot;{% static 'css/bootstrap.min.css' %}&quot; rel=&quot;stylesheet&quot;&gt;  
      &lt;script src=&quot;{% static 'js/bootstrap.min.js' %}&quot;&gt;&lt;/script&gt;  
      &lt;script src=&quot;https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js&quot;&gt;&lt;/script&gt;  
  
      &lt;link href=&quot;{% static 'css/main.css' %}&quot; rel=&quot;stylesheet&quot;&gt;  
      &lt;link href=&quot;{% static 'css/profile.css' %}&quot; rel=&quot;stylesheet&quot;&gt;  
      &lt;link href=&quot;{% static 'css/sidebar.css' %}&quot; rel=&quot;stylesheet&quot;&gt;  
      &lt;link href=&quot;https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css&quot; rel=&quot;stylesheet&quot;&gt;  
  
  &lt;/head&gt;
  
  &lt;body&gt;
  
      &lt;div class=&quot;page-container&quot;&gt;
          &lt;div class=&quot;content-wrap&quot;&gt;
              &lt;div class=&quot;&quot;&gt;
                  {% if user.is_authenticated and user.is_superuser %}
                          {% include 'HOD/sidebar_template.html' %}
                  {% endif %}
              &lt;/div&gt; 
              &lt;div class=&quot;col&quot;&gt;
                  {% block content %}
                  {% endblock content %}
              &lt;/div&gt; 
          &lt;/div&gt;
      &lt;/div&gt;
      &lt;!-- Optional Javascript --&gt;  
      {% block custom_js %}
      {% endblock custom_js %}
  
  &lt;/body&gt;
   &lt;!-- Site footer --&gt;
      &lt;footer class=&quot;footer&quot;&gt;
          &lt;div class=&quot;container text-center&quot;&gt;
              &lt;small&gt;Copyright &amp;copy; Your Website&lt;/small&gt;
          &lt;/div&gt; 
      &lt;/footer&gt;
  &lt;/html&gt;
  </code></pre>
  <p>Can someone help me fix the layouts ? Thanks.</p>