Is it bad use “display: table;” to organise a layout into 2 columns?

后端 未结 9 1892
感动是毒
感动是毒 2021-01-01 20:37

I am trying to make a 2 column layout, apparently the bane of CSS. I know you shouldn\'t use tables for layout, but I\'ve settled on this CSS. Note the use of display: table

9条回答
  •  爱一瞬间的悲伤
    2021-01-01 21:08

    This is the type of example that display: table-cell; was designed for. You are, after all, putting the formatting into the stylesheet, not the markup. So relax! It's fine.

提交回复
热议问题