you need justify-content:flex-end
and imbricate 2 flex
levels to trigger justify-content
within childs.
DEMO with 2 p
in body
as container.
Base CSS
body {/* used as a box for demo, size it */
width:600px;
height:250px;
margin:auto;
display:flex;
}
p {
border:solid;
display:flex;
flex-direction:column;/* vertical! */
padding:5px;
}
p+p {
justify-content: flex-end;/* drop down content */
}
to see content overflowing at the top you must go against the natural flow, so,
you need to set content in absolute
position
within a relative
parent :
HTML same as above + text wrapped in span
for second paragraph.
body {
width:600px;
height:150px;
margin:auto;
display:flex;
}
p {
border:solid;
padding:5px;
margin:1em;
width:300px;
position:relative;
}
p + p span {
display:block;
position:absolute;
bottom:0;
width:100%
}