Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Can a table element be a flex item?

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #239381
    bjamieson
    Participant

    I’m struggling to get a table to participate in a flexbox. I can’t find anything that would seem to preclude tables from being flex items, but I can’t get any of the flex behavior to apply to a table. Simple example:

    http://codepen.io/bjamieson/pen/bpgpQd

    #239382
    Paulie_D
    Moderator

    Tables have a default display property (display:table..duh) so you’d have to override that.

    BUT…there is no display:flex-item but display:block should get the ball rolling.

    http://codepen.io/Paulie-D/pen/ZWLOGa

    Unfortunately, you might still have issues with tr/td as they may have the same problems.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘CSS’ is closed to new topics and replies.