display:table versus using tables

前端 未结 8 1002
余生分开走
余生分开走 2021-01-06 03:18

I was wondering if it\'s a good idea to use CSS display property to emulate tables for a veeeery simple forum system.

I know this wasn\'t good thing to do like 2 yea

相关标签:
8条回答
  • 2021-01-06 04:01

    I wouldn't mix structure (HTML) with style (CSS). If it's tabular data, just use <table>s if it's not, you're best bet would to use divs/CSS.

    0 讨论(0)
  • 2021-01-06 04:03

    It can be of use, particularly for vertical centring of content. I wouldn't use it for a whole layout, but that's just because I'm used to using floats.

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