Forums

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

Home Forums CSS Flexbox and padding problem Reply To: Flexbox and padding problem

#180123
Mikko Laine
Participant

… The problem isn’t that I can’t get it to work (text nodes are there just to show the items)
And without the use of display: flex on the parent of that p (and flex: 1 on p) it doesn’t work (try adding more text on one of the p elements)

The point was… why does flex element sizes change when padding is added? (even with box-sizing)