Align flex-box items to baseline of last text line in a block

后端 未结 2 1587
暖寄归人
暖寄归人 2021-02-14 16:18

I am trying to achive the last example on the following image, using flex-box.

From what I see, the align-items: baseline; property works great whe

2条回答
  •  难免孤独
    2021-02-14 16:38

    At the time of writing the CSS box model alignment working draft proposes a ‘first’ and ‘last’ value to be added to ‘align-items’. The would allow:

    align-items: last baseline

    Current it only appears to be supported by Firefox so is one for the future.

    https://developer.mozilla.org/en-US/docs/Web/CSS/align-items

提交回复
热议问题