Re:They Say: Do Not Use Margins in CSS. How I Use Them Anyway
by marcofatica on Friday January 14, 2022 @08:02PM
(#29942562)
Isn't this just padding with extra steps?
[ Parent
| on HN ]
Re:They Say: Do Not Use Margins in CSS. How I Use Them Anyway
by JellyBeanThief on Friday January 14, 2022 @09:03PM
(#29942889)
No, because the `container` element uses `margin` and not `padding`. This results in margin behavior, where two adjacent containers with `margin: 10px` will have only 10px between them instead of 20 like with padding.