5

Ditch them completely.
In modern browsers you can emulate their behaviour easily.
They make your layout unnecessarily complex.
What the fuck am I talking about?

Tables in HTML. Fuck them. It may be just me and I still do not understand all of their defaults and when ti apply which style to which table element (thead, th, td...) but I found out that I can make almost everything with divs, flexbox or even some fixed widths or heights much easier to what I want than with tables.

Especially if you layout a complex scrolling component with static top row and static first column, it is nearly impossible with tables (and even without them you still need JS).

Ah, and fuck IE with a dirty trident. That thing can die in hell.

Comments
  • 0
    yeah but what if you just want some simple content aligned in columns and rows. yeah you can use flexbox and/or css grid but a table is ultra simple to construct and not that hard to style. and it can be pasted into excel if im not mistaken.
  • 1
    Yeah I guess if you want to use them as table, there is nothing wrong with it.

    However, if you want to use it for what at first sight looks like a table, but behaves way differently, especially when it should display equally great on different viewport sizes, you lead yourself into a dead end sometimes.

    I'm not saying they are useless, but I have just nearly no use for them anymore.
Add Comment