I'm trying to align a line of text to the bottom of the screen with this code.
body,
html {
height: 100%;
}
div.BottomAligned {
width: 100%;
height: 100%;
display: flex;
align-items: flex-end;
justify-content: center;
overflow: hidden;
}
<div id="Main" style="min-height: 100%;">
<div>
Line1<br> Line2
</div>
<div id="Bottom" class="BottomAligned">
TextBottom
</div>
</div>
However, the "TextBottom" text is shown below the visible portion of the screen, so the height of the Main div is actually bigger than 100% of the window size. Any ideas how to fix this?