Vertical Align a DIV with dynamic height inside another DIV

后端 未结 1 962
借酒劲吻你
借酒劲吻你 2021-01-25 19:49

I have been looking around and seem to find lots about aligning a div vertically however not with a dynamic height div surrounding it.. i have a moch up of what i require, built

1条回答
  •  野的像风
    2021-01-25 19:55

    Not so easy but check this out: http://blog.themeforest.net/tutorials/vertical-centering-with-css/

    Try using vertical-align: middle and a set of divs with display:table, table-row, table-cell.

    0 讨论(0)
提交回复
热议问题