Hacker News new | past | comments | ask | show | jobs | submit login

> How is padding different? It's kind of in the definition of padding.

I was responding to you raising technical questions about how could gap work in some edge cases by saying: "same as padding".

If "gap" is always used like padding, why wouldn't it behave the same?

FTR, I am not sure it's used like that commonly (I've stopped doing CSS UIs before the flexbox came to be): I am not putting that out as a conditional by accident.




> If "gap" is always used like padding, why wouldn't it behave the same?

Ah.. yeah, that's a big loaded "if". I would say it's not. It's usually used as a gap, like the name implies. Gap and padding play nicely together too, so, if you want both, use both.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: