Forums

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

Home Forums CSS Problem with my margin at the bottom

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

    Hi!
    I’ve got a div with some buttons in it
    Problem is, I want a margin between the buttons, but not so the div is expanded at the bottom, so how do I remove the margin at the bottom from the bottom row?
    http://codepen.io/anon/pen/raYvvb

    #195322
    Shikkediel
    Participant

    By using margin-top, lol. But seriously… in the practical implementation, will there be a way to know how many elements will end up in the bottom row? If that is ‘random’ I don’t see how to fix it.
    Not with CSS alone, at least.

    Actually, you could use margin-top and offset the parent container along the y-axis by the same amount but it’s seems a bit hacky.

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