What I would like to do is change the image baseline so that the heading will move towards the top of the column.
My goal – figure out how to adjust the image baseline without changing the .container class. Is this possible?
您可以为图像创建一个类,然后使用align-self属性仅调整图像的对齐方式.
从你的codepen:
修改HTML(在两个地方添加.image类)
Nullam eget metus suscipit...
Lorem ipsum dolor sit amet,cons...
Nullam eget metus suscipit...
Nullam eget metus suscipit...
Lorem ipsum dolor sit amet...
修改后的CSS(添加了一条规则)
.image { align-self: flex-end; }
Revised DEMO