title: Make button stick to bottom of a div and still be centered
body: <p>Alright, so tried with table-cell and vertical-align: bottom
  Also tried using position: relative on parent and position: absolute on button (which, kinda works, and I say kinda because some buttons are out of the boxes).</p>
  
  <p>Here's the JsFiddle: <a href="https://jsfiddle.net/6abcr5f0/" rel="nofollow noreferrer">https://jsfiddle.net/6abcr5f0/</a></p>
  
  <p>HTML code:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  </code></pre>
  
  <p></p>
  
  <p>
      
  </p>
  
  
  
  
  
  
  
  
  
  <pre><code>&lt;link rel="stylesheet" href="styles/main.css"&gt;
  &lt;meta charset="utf-8"&gt;
  &lt;title&gt;Apple - iPhone&lt;/title&gt;
  </code></pre>
  
  <p></p>
  
  <p></p>
  
  <pre><code>&lt;ul id="ul"&gt;
      &lt;a href="index.html"&gt;&lt;img src="images/logo.png"&gt;&lt;/a&gt;
      &lt;li&gt;&lt;a href="#"&gt;iPhone&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="#"&gt;iPad&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="#"&gt;iPod&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="#"&gt;Mac&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="#"&gt;Watch&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="#"&gt;TV&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="#"&gt;Support&lt;/a&gt;&lt;/li&gt;
  &lt;/ul&gt;
  
  &lt;div id="ad"&gt;
  
      &lt;center&gt;
      &lt;h3 class="blackh1"&gt;iPhone&lt;/h3&gt;
      &lt;h2 class="blackh1"&gt;This is 7.&lt;/h2&gt;
      &lt;img src="images/iphone.jpg" class="iphoneimg"&gt;
      &lt;/center&gt;
  
  &lt;/div&gt;
  &lt;div id="product-container"&gt;
      &lt;div class="cont"&gt;&lt;div class="product"&gt;
  
          &lt;h1 class="h1"&gt;iPhone&lt;/h1&gt;&lt;br&gt;
          &lt;img src="images/iPhone7.png" class="contentimg"&gt;
          &lt;p class="ptext"&gt;
          This is 7.
          iPhone 7 dramatically improves the most important aspects of the iPhone experience. It introduces advanced new camera systems. The best performance and battery life ever in an iPhone. Immersive stereo speakers. The brightest, most colorful iPhone display. Splash and water resistance.1 And it looks every bit as powerful as it is. This is iPhone 7.&lt;/p&gt;
          &lt;button class="buy"&gt;Buy from 649$&lt;/button&gt;
  
      &lt;/div&gt;
  
      &lt;div class="product"&gt;
  
          &lt;h1 class="h1"&gt;iPad&lt;/h1&gt;&lt;br&gt;
          &lt;img src="images/IPad.png" class="contentimg2"&gt;
          &lt;p class="ptext"&gt;iPad Pro is more than the next generation of iPad — it’s an uncompromising vision of personal computing for the modern world. It puts incredible power that leaps past most portable PCs at your fingertips. It makes even complex work as natural as touching, swiping, or writing with a pencil. And whether you choose the 12.9-inch model or the new 9.7-inch model, iPad Pro is more capable, versatile, and portable than anything that’s come before. In a word, super.&lt;/p&gt;
          &lt;button class="buy"&gt;Buy from 599$&lt;/button&gt;
  
      &lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="cont"&gt;&lt;div class="product"&gt;
  
          &lt;h1 class="h1"&gt;iPod&lt;/h1&gt;&lt;br&gt;
          &lt;img src="images/iPod.jpg" class="contentimg3"&gt;
          &lt;p class="ptext"&gt;iPod touch is the perfect way to carry your music collection in your pocket. With the iTunes Store — the world’s largest music catalog — you can load up your iPod touch with your favorite songs. And thanks to iCloud, everything you purchase through the iTunes Store is automatically available on all your devices for free. To enhance your music experience even more, Apple Music is available on your iPod touch, right in the Music app.&lt;/p&gt;
          &lt;button class="buy"&gt;Buy from 399$&lt;/button&gt;
  
      &lt;/div&gt;
  
      &lt;div class="product"&gt;
  
  
          &lt;img src="images/watchlogo.png" class="watchlogo"&gt;
          &lt;img src="images/watch.jpg" class="contentimg4"&gt;
          &lt;p class="ptext"&gt;Built-in GPS. Water resistance to 50 meters.1 A new lightning-fast dual-core processor. And a display that’s two times brighter than before. Full of features that help you stay active, motivated, and connected, Apple Watch Series 2 is designed for all the ways you move.&lt;/p&gt;
          &lt;button class="buy"&gt;Buy from 269$&lt;/button&gt;
  
      &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  &lt;div id="product-container2"&gt;
      &lt;h1 class="h1"&gt;iMac&lt;/h1&gt;
      &lt;h3&gt;Retina. In colossal and ginormous.&lt;/h3&gt;
      &lt;img src="images/imac.png" class="imacimg"&gt;
      &lt;p class="ptext"&gt;The idea behind iMac has never wavered: to craft the ultimate desktop experience. The best display, paired with high-performance processors, graphics, and storage — all within an incredibly thin, seamless enclosure. And that commitment continues with the all-new 21.5‑inch iMac with Retina 4K display. Like the revolutionary 27‑inch 5K model, it delivers such spectacular image quality that everything else around you seems to disappear. Adding up to the most immersive iMac experience yet — and another big, beautiful step forward.
  
      &lt;/p&gt;&lt;br&gt;
      &lt;button class="button1"&gt;Check MacBook Pro&lt;/button&gt;
      &lt;button class="buy"&gt;Buy from 269$&lt;/button&gt;
      &lt;button class="button1"&gt;Check MacBook Air&lt;/button&gt;
  &lt;/div&gt;
  &lt;div&gt;
      &lt;div class="footer"&gt;
          &lt;p class="ftext"&gt;Copyright © 2017 Apple Inc. All rights reserved.&lt;/p&gt;
          &lt;ul id="footul"&gt;
              &lt;li class="footli"&gt;&lt;a href="index.html" class="flink"&gt;Privacy Policy&lt;/a&gt;&lt;/li&gt;
              &lt;li class="footli"&gt;&lt;a href="index.html" class="flink"&gt;Terms of Use&lt;/a&gt;&lt;/li&gt;
              &lt;li class="footli"&gt;&lt;a href="index.html" class="flink"&gt;Sales and Refunds&lt;/a&gt;&lt;/li&gt;
              &lt;li class="footli"&gt;&lt;a href="index.html" class="flink"&gt;Legal&lt;/a&gt;&lt;/li&gt;
              &lt;li class="footli"&gt;&lt;a href="index.html" class="flink"&gt;Site Map&lt;/a&gt;&lt;/li&gt;
          &lt;/ul&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p></p>
  
  <p></p>