How to make columns the same height, regardless of content, and vertically-align buttons within those columns?

后端 未结 3 1742
半阙折子戏
半阙折子戏 2020-12-04 01:08

I\'m trying to make a column layout, with content in each, and I want them to be the same height but I\'m not able to get it to work.

One of the columns is higher th

3条回答
  •  自闭症患者
    2020-12-04 01:37

    As far as vertically aligning the content,check this article out:

    http://phrogz.net/css/vertical-align/

    You set a parent container to position: relative, then your content to position:absolute; top: 50%; height: 10em; margin-top: -5em;

    basically the top margin is - 1/2 the container height.

提交回复
热议问题