Answered
Independently moving elements
- December 4, 2025
- 3 replies
- 624 views
What you describe here is likely something called "Margin Collapse" between a parent and descendent element.
This explains it and how to work around the issue: https://developer.mozilla.org/en-US/docs/Web/CSS/Guides/Box_model/Margin_collapsing
(specifically the "No content separating parent and descendents" info)
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.