One of those things I've just been subconsciously dealing with for years without ever deciding to actually learn the rules.
"Damn it collapsed. Okay padding then"
"Damn it collapsed. Okay padding then"
Just don't use margins for layout, I guess.
container {
flow: horizontal; /* single row */
}
container > child {
margin:1em; /* will collapse */
}
See: https://docs.sciter.com/docs/CSS/flows-and-flexes#flowhorizo..."Add margin. More margin. Moooore margin!! Oh wait.."
I was both impressed and appalled to see it.