title: Set footer on bottom (adapted to content) with Angular 4 and Bootstrap 4
body: <p>¿How can i make a footer stay on bottom of a website with the following structure?:</p>
  
  <pre><code>&lt;html&gt;
      &lt;head&gt;
      &lt;/head&gt;
  
      &lt;body&gt;
          &lt;app-root&gt;&lt;/app-root&gt;
      &lt;/body&gt;
  
  &lt;/html&gt;
  </code></pre>
  
  <p>So, the app-root is the main component in angular, inside this component i have the following structure:</p>
  
  <pre><code>&lt;app-navbar&gt;&lt;/app-navbar&gt;
  &lt;div class="container"&gt;
      &lt;div class="row"&gt;
  
          &lt;div class="col-12 p-0"&gt;
              &lt;app-information *ngIf="title == 'information'"&gt;&lt;/app-information&gt;
              &lt;app-form *ngIf="title == 'form'"&gt;&lt;/app-form&gt; 
              &lt;app-proyects *ngIf="title == 'proyects'"&gt;&lt;/app-proyects&gt;
              &lt;app-blog *ngIf="title == 'blog'"&gt;&lt;/app-blog&gt;
              &lt;app-courses *ngIf="title == 'coursess'"&gt;&lt;/cursos&gt;
          &lt;/div&gt;
  
      &lt;/div&gt;
  &lt;/div&gt;
  &lt;app-footer&gt;&lt;/app-footer&gt;
  </code></pre>
  
  <p>So, just for understanding, the divs inside the col-12 div are shown depending on a variable called title setted up by pressing buttons on the navbar.
  The case is that not all of those divs have content that exceedes the screen size, and the footer goes upwards.</p>
  
  <p>Inside my footer i have this structure:</p>
  
  <pre><code>&lt;footer class="bg-inf-blue" &gt;
      &lt;div class="container p-0"&gt;
          &lt;div class="row text-white py-3"&gt;
              &lt;div class="col-6 h6 p-0"&gt;Contact&lt;/div&gt;
              &lt;div class="col-6 h6"&gt;Social Media&lt;/div&gt;
              &lt;div class="col-2 p-0"&gt;
                  &lt;ul class="list-unstyled"&gt;
                      &lt;li class="h6"&gt;Place 1&lt;/li&gt;
                      &lt;li&gt;Place 1 address&lt;/li&gt;
                      &lt;li&gt;XXX XXX-XXXX&lt;/li&gt;
                  &lt;/ul&gt;
              &lt;/div&gt;
              &lt;div class="col-2"&gt;
                  &lt;ul class="list-unstyled"&gt;
                      &lt;li class="h6"&gt;Place 2&lt;/li&gt;
                      &lt;li&gt;Place 2 address&lt;/li&gt;
                      &lt;li&gt;XXX XXX-XXXX&lt;/li&gt;
                  &lt;/ul&gt;
              &lt;/div&gt;
              &lt;div class="col-2"&gt;
                  &lt;ul class="list-unstyled"&gt;
                      &lt;li class="h6"&gt;Place 3&lt;/li&gt;
                      &lt;li&gt;Place 3 address&lt;/li&gt;
                      &lt;li&gt;XXX XXX-XXXX&lt;/li&gt;
                  &lt;/ul&gt;
              &lt;/div&gt;
              &lt;div class="col-6 align-items-center"&gt;
                  &lt;a href="https://www.facebook.com/address/" target="blank"&gt;&lt;img src="../assets/facebook-logo-button.png" height="40px"&gt;&lt;/a&gt;
                  &lt;a href="https://twitter.com/address" target="blank"&gt;&lt;img src="../assets/twitter-logo-button.png" height="40px"&gt;&lt;/a&gt;
              &lt;/div&gt;
              &lt;div class="col-12 p-0"&gt;
                  &lt;small&gt;Lorem ipsum dolor sit amet consectetur&lt;/small&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/footer&gt;
  </code></pre>
  
  <p>what i need is that the footer to stay on the bottom of the screen when the content between the  and  is too short to fill the screen.</p>
  
  <p>If there's a solution with CSS, i'm working with Twitter Bootstrap 4, if there's a solution with typescript, i'm working with Angular 4.</p>