Bug in CSS Grid: Use grid-column to Control Spacing
See original GitHub issueDescribe your problem and how to reproduce it:
Correct solution lets you not pass test.
The grid-column: 2 / 4;
is called in the next challenge and even being refered to as well.
Add a Link to the page with the problem: https://www.freecodecamp.org/learn/responsive-web-design/css-grid/use-grid-column-to-control-spacing
Tell us about your browser and operating system:
- Browser Name: Google Chrome
- Browser Version: 78.0.3904.97 (Official Build) (64-bit)
- Operating System: macOS
If possible, add a screenshot here (you can drag and drop, png, jpg, gif, etc. in this box):
Issue Analytics
- State:
- Created 4 years ago
- Comments:28 (22 by maintainers)
Top Results From Across the Web
Bug? in CSS Grid: Use grid-column to Control Spacing
In “CSS Grid: Use grid-column to Control Spacing” we are asked to “Make the item with the class item5 consume the last two...
Read more >Preventing a Grid Blowout | CSS-Tricks
To apply our fix, we need to make sure that there is the column has a definite minimum width instead of auto ....
Read more >column-gap - CSS: Cascading Style Sheets - MDN Web Docs
Note that grid-column-gap is an alias for this property. ... The browser's default spacing is used between columns. For multi-column layout ...
Read more >Grid - web.dev
CSS Grid Layout provides a two dimensional layout system, controlling layout in rows and columns. In this module discover everything grid has to...
Read more >Why does CSS Grid layout add extra gaps between cells?
The vertical gaps are caused by the images not filling the vertical space in the grid items. The problem is made worse with...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I would go for something like that from @lasjorg’s comment. Here’s what I came up with…
I tested this locally on firefox and it looks to be working.
@sascharissling thanks for taking the time to work through this. Those screenshots are a massive help. @RandellDawson how about jumping up to 1? That should still avoid false positives since the wrong answers are out by a lot more than that.