title: How do I align slick slider directly above the bottom element in my container?
body: <p>I'm using slick slider <a href="https://kenwheeler.github.io/slick/" rel="nofollow noreferrer">https://kenwheeler.github.io/slick/</a>. I want to align the slider directly above the text at the bottom of my container. The result should look like this > <a href="https://i.stack.imgur.com/V9QB2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/V9QB2.png" alt="Result required"></a> </p>
  
  <p>Below is a snippet of what I have so far that is working. </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>jQuery(document).ready(function($) {
        $('.slider').slick({
          speed: 500,
          slidesToShow: 3,
          slidesToScroll: 1
      });
  });</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>html, body {
    background: #102131;
    color: white;
  }
  
  .container {
    position: relative;
    height: 400px;
  }
  
  .push_to_bottom {
    position: absolute;
    left: 50%;
    bottom: 0px;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
  }
  
  .slick-slider {
    background: #3a8999;
    font-size: 30px;
    text-align: center;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;link href="https://cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick-theme.css" rel="stylesheet"/&gt;
  &lt;link href="https://cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick.css" rel="stylesheet"/&gt;
  &lt;script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script src="https://cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick.min.js"&gt;&lt;/script&gt;
  &lt;div class="container"&gt;
    &lt;div class="slider" data-slick='{"arrows": true'}&gt;
      &lt;div&gt;slide 1&lt;/div&gt;
      &lt;div&gt;slide 2&lt;/div&gt;
      &lt;div&gt;slide 3&lt;/div&gt;
      &lt;div&gt;slide 4&lt;/div&gt;
      &lt;div&gt;slide 5&lt;/div&gt;
    &lt;/div&gt;
   
   &lt;div class="push_to_bottom"&gt;
    &lt;h1&gt;Some text&lt;/h1&gt;
   &lt;/div&gt;
   
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Below is how i tried to make it work. I tried to align it the same way as i aligned the text using the class .push_to_bottom. But it's giving me some weird results.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>jQuery(document).ready(function($) {
        $('.slider').slick({
          speed: 500,
          slidesToShow: 3,
          slidesToScroll: 1
      });
  });</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>html, body {
    background: #102131;
    color: white;
  }
  
  .container {
    position: relative;
    height: 400px;
  }
  
  .push_to_bottom {
    position: absolute;
    left: 50%;
    bottom: 0px;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
  }
  
  .slick-slider {
    background: #3a8999;
    font-size: 30px;
    text-align: center;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;link href="https://cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick-theme.css" rel="stylesheet"/&gt;
  &lt;link href="https://cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick.css" rel="stylesheet"/&gt;
  &lt;script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script src="https://cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick.min.js"&gt;&lt;/script&gt;
  &lt;div class="container"&gt;
   &lt;div class="push_to_bottom"&gt;
      &lt;div class="slider" data-slick='{"arrows": true'}&gt;
        &lt;div&gt;slide 1&lt;/div&gt;
        &lt;div&gt;slide 2&lt;/div&gt;
        &lt;div&gt;slide 3&lt;/div&gt;
        &lt;div&gt;slide 4&lt;/div&gt;
        &lt;div&gt;slide 5&lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
      
   &lt;div class="push_to_bottom"&gt;
    &lt;h1&gt;Some text&lt;/h1&gt;
   &lt;/div&gt;
   
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>