Here is another solution using flexbox but without using flex-end for bottom alignment. The idea is to set margin-bottom
on h1 to auto to push the remaining content to the bottom:
#header {_x000D_
height: 350px;_x000D_
display:flex;_x000D_
flex-direction:column;_x000D_
border:1px solid;_x000D_
}_x000D_
_x000D_
#header h1 {_x000D_
margin-bottom:auto;_x000D_
}
_x000D_
<div id="header">_x000D_
<h1>Header title</h1>_x000D_
Header content (one or multiple lines) Header content (one or multiple lines)Header content (one or multiple lines) Header content (one or multiple lines)_x000D_
</div>
_x000D_
We can also do the same with margin-top:auto
on the text but in this case we need to wrap it inside a div
or span
:
#header {_x000D_
height: 350px;_x000D_
display:flex;_x000D_
flex-direction:column;_x000D_
border:1px solid;_x000D_
}_x000D_
_x000D_
#header span {_x000D_
margin-top:auto;_x000D_
}
_x000D_
<div id="header">_x000D_
<h1>Header title</h1>_x000D_
<span>Header content (one or multiple lines)</span>_x000D_
</div>
_x000D_