, , , v, css?
, CSS. Flexbox .
JS. HTML.
CSS:
#container {
display: flex;
flex-direction: column;
justify-content: space-between;
position: absolute;
top: 1em;
left: 1em;
bottom: 2em;
width: 30%;
background: #0f0;
overflow: hidden;
}
#container::before, #container::after {
content: '';
}
#container img {
width: 100%;
flex-shrink: 0;
}
https://jsfiddle.net/t4um60k1/10/
Flexbox (flex-direction: column).
, (, ) space-between.
justify-content: space-between , , , . , column, .
, , "phantom" .
, justify-content: center ?
, , .
justify-content: center .
space-between, flex , space-between flex-start, ( . ).
, , , , flex-shrink: 0, , .
space-between flex-start
:
Flex . line, flex-start.
Flex .... , .
( )
: https://www.w3.org/TR/css-flexbox-1/#justify-content-property
, Flexbox IE 8 9. , Safari 8 IE10, . , , CSS : Autoprefixer.