I have a container named section-a
that has a height of 100vh
and it has 3 items and I would like to align my last item to the end of the view port height. I have tried adding the property of align-self:flex-end
but I don't see any changes. Anyone able to spot where have I done incorrectly?
.section-a {
height: 100vh;
display: flex;
flex-direction: column;
}
.hero {
height: 250px;
width: 100%;
align-self: flex-end;
}
.hero img {
max-height: 100%;
}
<section id="section-a">
<div class="nav"> ... </div< <div class="content"> ... </div>
<div class="hero">
<img src="hero.svg">
</div>
</section>