title: bootstrap parent child grand-child positioning relative to each other
body: <p>I have a parent div, and have positioned a child on top of it using position-relative, and position absolute.
  The parent is a large image, and the child is a 3 column row that acts like a band, the height of the band is less than the height of the large image in the parent div.
  The problem I am facing is the positioning of the third div (not counting the ones in the band), which is the footer.</p>
  <p>On small devices since the large image of the parent div is resized I have moved the band with top:100% so that I see the large image, and from the bottom of it you can see the 3 columns, and here is the need to move the footer div at the bottom of the last column of the band (child div)</p>
  <p>I have tried fixed-bottom on the last (footer) div, and of course it works, but it leaves white space between the band, and the footer, if not much content in the footer, whereas it overlaps if too much content.</p>
  <pre><code>&lt;div class=&quot;container-fluid position-relative fz-wrap&quot;&gt;
  &lt;div class=&quot;row h-100 align-items-center&quot;&gt;
      &lt;div class=&quot;text-center&quot;&gt;
          &lt;img class=&quot;mx-auto d-flex rounded img-fluid&quot; src=&quot;images/lrg-img.jpg&quot; alt=&quot;&quot;&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  &lt;div class=&quot;fz-brand-band&quot;&gt;
      &lt;div class=&quot;row align-items-center&quot;&gt;
          &lt;div class=&quot;col-12 col-md-4 text-center fz-brand-1&quot;&gt;
              &lt;img class=&quot;mx-auto d-flex rounded img-fluid&quot; src=&quot;images/img-1.png&quot; alt=&quot;&quot;&gt;
          &lt;/div&gt;
          &lt;div class=&quot;col-12 col-md-4 text-center fz-brand-2&quot;&gt;
              &lt;img class=&quot;mx-auto d-flex rounded img-fluid&quot; src=&quot;images/img-2.png&quot; alt=&quot;&quot;&gt;
          &lt;/div&gt;
          &lt;div class=&quot;col-12 col-md-4 text-center fz-brand-3&quot;&gt;
              &lt;img class=&quot;mx-auto d-flex rounded img-fluid&quot; src=&quot;images/img-3.png&quot; alt=&quot;&quot;&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  &lt;/div&gt;
  &lt;div class=&quot;p-2&quot;&gt;
      Footer
  &lt;/div&gt;
  </code></pre>
  <p>The Css</p>
  <pre><code>.fz-brand-band {position: absolute; top: 0; background-color: rgba(180, 225, 180, 0.4);}
  
  .fz-wrap {overflow: hidden;}
  
  @media (max-width: 768px) {
  .fz-wrap {overflow: visible;}
  }
  @media (max-width: 768px) {
  .fz-brand-band {position: absolute; top: 100%;}
  }
  </code></pre>