|
|
|
|
|
by lewisl9029
2267 days ago
|
|
> HTML has collapsing margins but they seem kind of half-baked. Is there enough functionality there to be useful, or is it best avoided entirely? Generally I'd recommend avoiding them entirely, as the rules for when margins should collapse are nuanced and sometimes applied inconsistently between browsers. https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Box_Mod... It just adds too much cognitive overhead to reasoning about your layouts to be worthwhile imo. Whereas with spacing components, what you see in the virtual dom is what you'll get. |
|