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
Possibly confusing note about floats, cleared items and grid #15285
Comments
I think the context in which the article says " when cleared items become flex or grid items " is not making sense to me. Only floated items can become flex or grid items. Removing only that part will make it clear. Thank you. |
My reading of that note is this. The main bit of that section is about how you can float some items, so they appear in a row. Then if you use grid as well, then in browsers that support grid, you'll get a grid layout, and in browser that don't, you'll get a floated layout. The key things that make this work are:
Then the note says: by the way, the same thing works with
I think this means, you could have a page layout that uses floats for, say, sidebars, and then uses So it's quite intentional that the note talks about Perhaps it might be clearer to adapt the example to include a "cleared footer" as well, and have the grid layout include the footer? It seems valuable to mention |
Yes, there should be a code example for " cleared footer " as well. So that just reading the note will not be that confused. Now I understand if any element is cleared using the But when I make the cleared items a grid items without making floated items grid items. The cleared items are sitting next to floated items they are not going to the new line. Can you explain a bit? Thank you. |
Yes! That would make this a lot more intuitive. |
MDN URL
https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layout/Supporting_Older_Browsers
What specific section or headline is this issue about?
Fallback methods
What information was incorrect, unhelpful, or incomplete?
Just above the "Fallback method" heading there is this note:
I wonder if we actually need the note in this context? It has caused confusion for at least one learner:
https://discourse.mozilla.org/t/confused-about-a-note-in-supporting-older-browsers-article/95769
I thought we could reword it but, I now wonder if removing the note altogether is the better option. It is stated again just a couple of sentences later here https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layout/Supporting_Older_Browsers#fallback_methods
What did you expect to see?
No note about cleared items.
Do you have any supporting links, references, or citations?
https://discourse.mozilla.org/t/confused-about-a-note-in-supporting-older-browsers-article/95769
Do you have anything more you want to share?
No response
MDN metadata
Page report details
en-us/learn/css/css_layout/supporting_older_browsers
The text was updated successfully, but these errors were encountered: