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

Wrong Visulation of Display Property #31437

Closed
viktiwari12 opened this issue Dec 31, 2023 · 2 comments · Fixed by mdn/interactive-examples#2710
Closed

Wrong Visulation of Display Property #31437

viktiwari12 opened this issue Dec 31, 2023 · 2 comments · Fixed by mdn/interactive-examples#2710
Labels
Content:CSS Cascading Style Sheets docs needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened.

Comments

@viktiwari12
Copy link

MDN URL

https://developer.mozilla.org/en-US/docs/Web/CSS/display

What specific section or headline is this issue about?

First section - Try it!

What information was incorrect, unhelpful, or incomplete?

In the display section, one of the properties is Display: block;

The corresponding visual effect is not what it should be.
Instead of being a display block, the boxes are being displayed inline.
Screenshot 2024-01-01 at 12 27 38 AM

What did you expect to see?

The inner boxes- one, two, three- should be displayed top to bottom, not left to right!

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
@viktiwari12 viktiwari12 added the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label Dec 31, 2023
@github-actions github-actions bot added the Content:CSS Cascading Style Sheets docs label Dec 31, 2023
@wbamberg
Copy link
Collaborator

wbamberg commented Jan 2, 2024

The box which is getting display assigned is the outer box: the one with the blue border - and not the boxes with "One"/"Two"/"Three" in them.

That said, I can see how this is confusing. Perhaps the text content of the inner boxes could indicate that they are the contents of the target?

This should be transferred to https://github.com/mdn/interactive-examples, but let's leave it here for a bit since this repo gets more eyes, and maybe people will have good idea for how to make the example clearer.

@OnkarRuikar
Copy link
Contributor

OnkarRuikar commented Jan 10, 2024

That said, I can see how this is confusing. Perhaps the text content of the inner boxes could indicate that they are the contents of the target?

@wbamberg I've created a PR mdn/interactive-examples#2710

This should be transferred to https://github.com/mdn/interactive-examples, but let's leave it here for a bit since this repo gets more eyes

Would be nice if we bring example repos under mdn/content.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 1, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Content:CSS Cascading Style Sheets docs needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants