I'm currently working on 3 columns with icons at the bottom, as seen on the bottom of this website:
I'm trying to align the icons directly to the bottom of each grey box without relying on position absolute
which is what I'm currently using. However, without using absolute
, I'm struggling to push all 3 icons to the bottom. Currently, they are all dependent on the height of the parent container.
I attempted to use flex
, but I'm unsure how to implement it in this scenario. Using position absolute
with a min-height
is causing issues on mobile devices.
The layout is a bootstrap
row containing 3 of these HTML
elements...
.gallery {
padding: 2.5rem 0;
}
.gallery h1 {
font-size: 3rem;
padding: 1.5% 0;
}
.gallery .app-box {
position: relative;
min-height: 31rem;
background-color: #ebedf0;
}
.gallery .app-box img {
width: 100%;
}
.gallery .app-box .caption {
display: flex;
flex-direction: column;
justify-content: space-between;
}
.gallery .app-box .name,
.gallery .app-box .description {
padding: 1rem;
color: #0f1a30;
font-weight: 700;
}
.gallery .app-box .name {
font-size: 1.5rem;
padding-bottom: 0;
}
.gallery .app-box .description {
opacity: 0.5;
}
.gallery .app-box .icons {
height: 100%;
width: 100%;
opacity: 0.5;
padding-bottom: 1rem;
}
.gallery .app-box .icons img {
width: 15%;
margin: 0 0.25rem;
}
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<section class="gallery">
<div class="col-md-4 col-12">
<a href="https://matiny.github.io/gta6/">
<figure class="app-box">
<img src="https://matiny.github.io/images/jpgs/gallery-gta.jpg" alt="">
<figcaption class="name">
GTA UI UPGRADES
</figcaption>
<div class="caption">
<figcaption class="description">GTA Online is very detailed, but the details are presented in a confusing way. <br> I came up with various menus which are simpler to use, while maintaining the same complex functions.
</figcaption>
<div class="icons">
<img src="https://matiny.github.io/images/svgs/icon-js.svg" alt="">
<img src="https://matiny.github.io/images/svgs/icon-react.svg" alt="">
<img src="https://matiny.github.io/images/svgs/icon-sass.svg" alt="">
</div>
</div>
</figure>
</a>
</div>
</section>