I am facing an issue with aligning the last item in my container named section-a
. The height of the container is set to 100vh
and it contains 3 items. I have tried using the property align-self:flex-end
, but there are no visible changes. Can anyone help me identify what I might be doing wrong?
https://i.stack.imgur.com/wfreu.png
.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>