title: How to prevent bottom div from moving with on hover resizing an element?
body: <p>how to stop bottom div up and down during hovering top div child in css</p>
  
  <p>The container <code>&lt;div class="procontainer"&gt;</code> holds two <code>&lt;div&gt;</code> elements. The top <code>&lt;div&gt;</code> contains product information and the bottom <code>&lt;div&gt;</code> contains a form with an input field. When I hover any product the form <code>&lt;div&gt;</code> moves up an down. <br></p>
  
  <p>i want to prevent the bottom <code>&lt;div&gt;</code> from moving when I hover over the product <code>&lt;div&gt;</code>.</p>
  
  <p>top div height must be the flexible base number</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-css lang-css prettyprint-override"><code> &lt;style&gt; 
                                            
  html{
     box-sizing: content-box;; 
      -ms-overflow-style: scrollbar;
      -webkit-tap-highlight-color: transparent;  
      -ms-text-size-adjust:100%;
      -webkit-text-size-adjust:100%;
  }
  .procontainer {  
    background: #F0F0F0; 
    margin-top: -2%;
    min-height: 700px;
    max-height: auto; 
    overflow: hidden;  
              } 
  .mini-container{ width:73%}
  /* wrapper */
  .time-wrapper {
    width: 100%;
    max-width: 1000px;
    margin: 20px auto 100px auto;
    padding: 0;
    background: #fff; 
    overflow: hidden;
  }
  
  /* lists */
  .time-row ul {
    margin: 0;
    padding: 0;
    font-size: inherit;
  }
  
  .time-row ul li {
    margin: 0;
    font-size: 16px;
    font-weight: normal;
    list-style: none;
    display: inline-block;
    width: 20%;
    box-sizing: border-box;
  }
  @media only screen and (max-width: 767px) and (min-width: 480px) {
    .time-row ul li {
      font-size: 13px;
    }
  }
  @media only screen and (max-width: 479px) {
    .time-row ul li {
      font-size: 13px;
    }
  } 
  .time-row ul li {
    padding: 5px 10px;
  }
  
  /* time-rows */
  .time-row {
    padding: 20px 0;
    height: 30px;
    font-size: 0;
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease-out;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
     clear: both;
      position: relative;
      background: #fff;   
      width:auto;
  }
  
  .time-row:hover { 
    height: 65px;  
      border-bottom-right-radius: 10px;
      border-top-right-radius: 10px;
      background: #375976;  
      width:auto;
      color: #fff;
     transition: height 1s;
  }
  @media only screen and (max-width: 767px) {
    .time-row:hover {
      height: 85px;
    }
  }
  @media only screen and (max-width: 359px) {
    .time-row:hover {
      height: 105px;
    }
  }
  
  
  .nfl {
    border-left: 3px solid #1c616c;
  }
  
  .nfl:hover {
    border-left: 3px solid #4fc0d2;
  }
  
  .mlb {
    border-left: 3px solid #1d6e4b;
  }
  
  .mlb:hover {
    border-left: 3px solid #52d29a;
  }
  
  .nhl {
    border-left: 3px solid rgba(157, 121, 25, 0.7);
  }
  
  .nhl:hover {
    border-left: 3px solid rgba(231, 196, 104, 0.7);
  }
  
  .pga {
    border-left: 3px solid #952f12;
  }
  
  .pga:hover {
    border-left: 3px solid #eb7655;
  }  
  
  /* more content */
  ul.more-content li {
    position: relative;
    top: 8px;
    font-size: 13px;
    margin: 0;
    padding: 15px 13px;
    display: block;
    height: 50px;
    width: 100%;
    color: #fff;
  }
  @media only screen and (max-width: 767px) {
    ul.more-content li {
      font-size: 11px;
    }
  } 
  &lt;/style&gt;</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>  &lt;div class="col-md-12 col-sm-12 col-xs-12 procontainer "&gt;
                  &lt;div class="col-md-12 col-sm-12 col-xs-12"&gt;
                        &lt;section id="content1"&gt; 
    &lt;div class="time-wrapper"&gt;
    &lt;div class="time-row mlb"&gt;
        &lt;ul&gt;
          &lt;li&gt;&lt;a href="#"&gt;MLB&lt;/a&gt;&lt;span class="small"&gt;(update)&lt;/span&gt;&lt;/li&gt;
          &lt;li&gt;$10&lt;/li&gt;
          &lt;li&gt;&lt;span class="update1"&gt;1&lt;/span&gt;&lt;span class="update2"&gt;2&lt;/span&gt;&lt;/li&gt;
          &lt;li&gt;10&lt;/li&gt;
          &lt;li&gt;1:00ET&lt;/li&gt;
        &lt;/ul&gt;
        &lt;ul class="more-content"&gt;
          &lt;li&gt; 
              This 1665-player contest boasts a $300,000.00 prize pool and pays out the top 300 finishing positions. First place wins $100,000.00. Good luck!&lt;/li&gt;
        &lt;/ul&gt;
      &lt;/div&gt;
    &lt;div class="time-row mlb "&gt;
        &lt;ul&gt;
          &lt;li&gt;&lt;a href="#"&gt;MLB&lt;/a&gt;&lt;span class="small"&gt;(update)&lt;/span&gt;&lt;/li&gt;
          &lt;li&gt;$10&lt;/li&gt;
          &lt;li&gt;&lt;span class="update1"&gt;1&lt;/span&gt;&lt;span class="update2"&gt;2&lt;/span&gt;&lt;/li&gt;
          &lt;li&gt;10&lt;/li&gt;
          &lt;li&gt;1:00ET&lt;/li&gt;
        &lt;/ul&gt;
        &lt;ul class="more-content"&gt;
          &lt;li&gt;This 1665-player contest boasts a $300,000.00 prize pool and pays out the top 300 finishing positions. First place wins $100,000.00. Good luck!&lt;/li&gt;
        &lt;/ul&gt;
      &lt;/div&gt;
    &lt;div class="time-row mlb "&gt;
        &lt;ul&gt;
          &lt;li&gt;&lt;a href="#"&gt;MLB&lt;/a&gt;&lt;span class="small"&gt;(update)&lt;/span&gt;&lt;/li&gt;
          &lt;li&gt;$10&lt;/li&gt;
          &lt;li&gt;&lt;span class="update1"&gt;1&lt;/span&gt;&lt;span class="update2"&gt;2&lt;/span&gt;&lt;/li&gt;
          &lt;li&gt;10&lt;/li&gt;
          &lt;li&gt;1:00ET&lt;/li&gt;
        &lt;/ul&gt;
        &lt;ul class="more-content"&gt;
          &lt;li&gt;This 1665-player contest boasts a $300,000.00 prize pool and pays out the top 300 finishing positions. First place wins $100,000.00. Good luck!&lt;/li&gt;
        &lt;/ul&gt;
      &lt;/div&gt;
    &lt;div class="time-row mlb"&gt;
        &lt;ul&gt;
          &lt;li&gt;&lt;a href="#"&gt;MLB&lt;/a&gt;&lt;span class="small"&gt;(update)&lt;/span&gt;&lt;/li&gt;
          &lt;li&gt;$10&lt;/li&gt;
          &lt;li&gt;&lt;span class="update1"&gt;1&lt;/span&gt;&lt;span class="update2"&gt;2&lt;/span&gt;&lt;/li&gt;
          &lt;li&gt;10&lt;/li&gt;
          &lt;li&gt;1:00ET&lt;/li&gt;
        &lt;/ul&gt;
        &lt;ul class="more-content"&gt;
          &lt;li&gt;This 1665-player contest boasts a $300,000.00 prize pool and pays out the top 300 finishing positions. First place wins $100,000.00. Good luck!&lt;/li&gt;
        &lt;/ul&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  
                          &lt;/section&gt;   
                  &lt;/div&gt;
             &lt;div class="col-md-8 col-md-offset-1 col-sm-8 col-xs-12 searchcontent" &gt;   
                     &lt;div class="col-md-12 col-sm-12 col-xs-12 city-search-box"&gt;  
                    &lt;div class="quickSearchContainer" &gt;
                        &lt;input id="autocomplete" name="query" placeholder="Add More City" class="searchfield" type="search" autocomplete="off"&gt;
                        &lt;div class="quickSearchDiv"&gt;
                              &lt;ul class="quickSearch" &gt; 
           &lt;/ul&gt; 
          &lt;/div&gt;  
               &lt;/div&gt;  
                    &lt;/div&gt;     
                 &lt;/div&gt; 
   &lt;/div&gt;  </code></pre>
  </div>
  </div>
  </p>