title: CSS and Bootstrap - How do you get a hovered image to overlap others
body: <p>I was wondering of a way to remove the issue of images that are adjacent with the hovered image in my code (notice when you hover it sometimes overlaps and sometimes is overlapped by a non-hovered image). I want the hovered image to always overlap.</p>
  
  <p>Here is the codepen link: <a href="https://codepen.io/dantedev/pen/XxRYrq" rel="nofollow noreferrer">https://codepen.io/dantedev/pen/XxRYrq</a></p>
  
  <p>HTML</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en" dir="ltr"&gt;
      &lt;head&gt;
          &lt;meta charset="utf-8"&gt;
          &lt;title&gt;ReSail - Sail Your Resale to Great Lengths&lt;/title&gt;
          &lt;link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css"&gt;
          &lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"&gt;&lt;/script&gt;
          &lt;script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js"&gt;&lt;/script&gt;
          &lt;script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js"&gt;&lt;/script&gt;
          &lt;link rel="stylesheet" href="style.css"&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;a href="#" class="homeLink"&gt;Home&lt;/a&gt;
          &lt;div class="container"&gt;
              &lt;div class="row"&gt;
                  &lt;div class="col-md-4"&gt;&lt;a href="#"&gt;&lt;img class="profile" src="https://hopsandbarleyco.com/wp-content/uploads/2017/02/Beer-Snob-Snap-Back-Hat-Heather-Gray-Background.jpg"&gt;&lt;/a&gt;&lt;/div&gt;
                  &lt;div class="col-md-4"&gt;&lt;a href="#"&gt;&lt;img class="profile" src="https://hopsandbarleyco.com/wp-content/uploads/2017/02/Beer-Snob-Snap-Back-Hat-Heather-Gray-Background.jpg"&gt;&lt;/a&gt;&lt;/div&gt;
                  &lt;div class="col-md-4"&gt;&lt;a href="#"&gt;&lt;img class="profile" src="https://hopsandbarleyco.com/wp-content/uploads/2017/02/Beer-Snob-Snap-Back-Hat-Heather-Gray-Background.jpg"&gt;&lt;/a&gt;&lt;/div&gt;
              &lt;/div&gt;
              &lt;div class="row"&gt;
                  &lt;div class="col-md-4"&gt;&lt;a href="#"&gt;&lt;img class="profile" src="https://hopsandbarleyco.com/wp-content/uploads/2017/02/Beer-Snob-Snap-Back-Hat-Heather-Gray-Background.jpg"&gt;&lt;/a&gt;&lt;/div&gt;
                  &lt;div class="col-md-4"&gt;&lt;a href="#"&gt;&lt;img class="profile" src="https://hopsandbarleyco.com/wp-content/uploads/2017/02/Beer-Snob-Snap-Back-Hat-Heather-Gray-Background.jpg"&gt;&lt;/a&gt;&lt;/div&gt;
                  &lt;div class="col-md-4"&gt;&lt;a href="#"&gt;&lt;img class="profile" src="https://hopsandbarleyco.com/wp-content/uploads/2017/02/Beer-Snob-Snap-Back-Hat-Heather-Gray-Background.jpg"&gt;&lt;/a&gt;&lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>CSS</p>
  
  <pre><code>.homeLink {
      text-decoration: none;
      font-size: 24px;
      color: #000000;
      padding: 20px;
  }
  
  .container {
      margin-top: 20px;
  }
  
  .profile {
      width: 100%;
      height: 100%;
      padding-bottom: 10px;
      transition: transform 0.8s;
      z-index: 1;
  }
  
  .profile:hover{
      transform: scale(1.2);
  }
  </code></pre>
  
  <p>Thanks!</p>