display:table versus using tables

前端 未结 8 1003
余生分开走
余生分开走 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 03:59

    Most newer browsers are probably ok with it now. Best thing you can do is test it on the browsers you care about. You won't ever be able to make "all browsers" happy, no matter what you do.

    I still use tables to structure my page in a lot of cases. Folks are right when they say you should use css for that instead, but good grief, the amount of work you have to put in to get divs to act like a grid properly in just one browser, let alone all of the major browsers, is still prohibitive. Unless you can find a real (as opposed to theoretical / philosophical kind of) problem with the table, it's just a lot more practical at this point.

    Maybe when the css grid layouts become a suitable replacement, I'll repent from my evil

    ways, but until then...

    提交回复
    热议问题