I am using flexbox to format three divs so that they have the same height (no matter the content). I am trying to align the buttons inside those divs at the bottom of the divs (all vertically aligned), but I can't get it to work. I have tried to use align-content and justify-content in any way I could think of... Here is the "clean" code where I removed everything I tried to align the buttons and kept only the working code.
.container .row {
@include flex;
@media screen and (max-width: $screen-sm) {
flex-direction: column;
}
}
<div class="container">
<div class="row row-bottom-padded">
<div class="block">
<div class="text">
<i class="icon {{ .icon }}"></i>
<h2>{{ .title }}</h2>
<p>{{ .description }}</p>
<p><a href="{{ .url }}" class="btn">{{ .button}}</a></p>
</div>
</div>
<div class="block">
<div class="text">
<i class="icon {{ .icon }}"></i>
<h2>{{ .title }}</h2>
<p>{{ .description }}</p>
<p><a href="{{ .url }}" class="btn">{{ .button}}</a></p>
</div>
</div>
<div class="block">
<div class="text">
<i class="icon {{ .icon }}"></i>
<h2>{{ .title }}</h2>
<p>{{ .description }}</p>
<p><a href="{{ .url }}" class="btn">{{ .button}}</a></p>
</div>
</div>
</div>
</div>
How can I setup my css for the three buttons to be aligned at the bottom across all divs? Do I need to add containers of any sort? Thanks.