2 ms·
> Just look at this: https://stackoverflow.com/a/19719427 https://stackoverflow.com/a/19719427 , you can “tune” collapsing margins by adjusting overflow, float
by Izkata 2y ago
> Just look at this: https://stackoverflow.com/a/19719427 https://stackoverflow.com/a/19719427 , you can “tune” collapsing margins by adjusting overflow, float or position. Yeah! Imagine adjusting your seat by pressing brakes or turning radio off.
The seeming complexity here is because people refuse to learn the box model, so they learn all sorts of incantations and guess at what they need to do: https://developer.mozilla.org/en-US/docs/Learn_web_development/Core/Styling_basics/Box_model#parts_of_a_box https://developer.mozilla.org/en-US/docs/Learn_web_developme...