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

后端 未结 9 1883
感动是毒
感动是毒 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:13

    It would be swell if every possible layout could be done with css, with no tables or pseudo-tables in sight. But there are exceptions, and until html and css (and browser support) let us do it, be comfortable with your tables. The point, after all, is to satisfy your users, not to adhere to someone else's philosophy.

提交回复
热议问题