Forums

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

Home Forums Design No space between contained elements with display: table

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #270085
    loopz
    Participant

    This is for a responsive CSS. I have tried with margins and so on. But there is no space between the columns when they fall down at resize. Only the top and the bottom object has margin from wrapper border.

    .wrapper {
    display: table;
    }

    .object1 {
    display: table-footer-group;
    }

    .object2 {
    display: table-footer-group;
    }

    .object3 {
    display: table-header-group;
    }

    //Samul

    #270088
    Paulie_D
    Member

    We need a minimal Codepen.io demo of this because, at the moment, it’s not clear what this issue is.

    #270095
    loopz
    Participant

    Codepen of this issue: https://codepen.io/Samule/pen/erNaRJ

    #270096
    Paulie_D
    Member

    Since you’re using flexbox, why not take advantage of it

    https://codepen.io/Paulie-D/pen/BxNgdo

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