Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Margin Collapsing Horizontally Explanation #37967

Closed
lvaqueiroperez opened this issue Feb 5, 2025 · 1 comment
Closed

Margin Collapsing Horizontally Explanation #37967

lvaqueiroperez opened this issue Feb 5, 2025 · 1 comment
Labels
closed: wontfix Out of scope, too much effort, or working as intended Content:Learn:CSS Learning area CSS docs

Comments

@lvaqueiroperez
Copy link

MDN URL

https://developer.mozilla.org/en-US/docs/Learn_web_development/Core/Styling_basics/Box_model

What specific section or headline is this issue about?

In the Margin Section, when you write about margin collapsing.

What information was incorrect, unhelpful, or incomplete?

You should also offer an explanation about margins collapsing horizontally, because they behave in a different manner than vertical ones.
The person or student reading this section should know that if two margins collapse horizontally, the margin in result will be the combination (sum) of both margins.

What did you expect to see?

A quick explanation, maybe with a MDN Playground code practice, of horizontal margins behavior.

Do you have any supporting links, references, or citations?

No response

Do you have anything more you want to share?

No response

MDN metadata

Page report details
@lvaqueiroperez lvaqueiroperez added the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label Feb 5, 2025
@github-actions github-actions bot added Content:Learn Learning area docs and removed Content:Learn Learning area docs labels Feb 5, 2025
@Josh-Cena Josh-Cena added the Content:Learn:CSS Learning area CSS docs label Feb 6, 2025
@caugner caugner added the goal: clarity (Experimental label) Issues about unclear/confusing/inconcise content. label Feb 7, 2025
@Josh-Cena
Copy link
Member

Hi! This section is not meant as a comprehensive description of margin collapsing. What you are describing is one case of no margin collapsing, which is the expected behavior. Here, we are explaining why you are getting spacing that you do not expect, and it's only relevant when it happens. If you want to know precisely when and how margin collapsing happens, we provide a link to the reference: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_box_model/Mastering_margin_collapsing

@Josh-Cena Josh-Cena closed this as not planned Won't fix, can't repro, duplicate, stale Feb 11, 2025
@Josh-Cena Josh-Cena added closed: wontfix Out of scope, too much effort, or working as intended and removed needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. goal: clarity (Experimental label) Issues about unclear/confusing/inconcise content. labels Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed: wontfix Out of scope, too much effort, or working as intended Content:Learn:CSS Learning area CSS docs
Projects
None yet
Development

No branches or pull requests

3 participants