I have a project going that requires me to construct, using flexbox, a grid of variable width buttons, that all have the same height, and are separated by a certain amount of space.
Currently, I'm spacing each button with margin: 10px 0 0 10px
, which of course will be the reason why I'm having a problem.
Please take a look at my JSFiddle to see what my full code is: https://jsfiddle.net/m025v4uL/1/
I've got it functioning almost perfectly, but I can't seem to get rid of the margin created space to the immediate top and left of the button area, if you see here:
It also works perfectly for this, with the same issue:
And for this (same issue, and the overlap down is intentional and will be utilized!):
What I want is to have space between the buttons, but not around the buttons. I am certain I'm missing the obvious here, and I really hope someone can help.