Source Code: (back to article)
<!DOCTYPE html>
<html>
<head>
<title>Title of the document</title>
<style>
main {
border: 1px solid blue;
height: 150px;
display: flex;/* defines flexbox */
flex-direction: column;/* top to bottom */
justify-content: space-between;/* first item at start, last at end */
}
h2 {
margin: 0;
}
</style>
</head>
<body>
<main>
<h2>Header title</h2> Some text aligns to the bottom
</main>
</body>
</html>