Comments (10)
m)
I had problems with this level as well, because I tried variations of grid-template-columns: 50px fr fr fr 50px;
but nothing seemed to work. Thanks for the clarification here.
from gridgarden.
I was stuck here either.
The instructions are:
Use
fr
to make three columns that take up the leftover space in between.
So I thought that the grid should have the total of three columns (50px 1fr 50px), not five (50px 1fr 1fr 1fr 50px).
from gridgarden.
I think the wording just needs to be updated to describe the way that the fr
unit works. Something like:
"Another unit that grid introduces is the fractional unit fr
. Each fr
unit allocates one share of the remaining space. For example, if two elements use 1fr
and 3fr
respectively, the space is divided into 4 equal shares. The first element will occupy 1/4 of the space and the second element will take 3/4."
from gridgarden.
You have to create two 50px columns on the left and right and between them 3 columns with 1fr value, it means that the rest of unused space will be divided equally to those 3 columns.
Solution: grid-template-columns: 50px 1fr 1fr 1fr 50px;
Try to change values to 50px 3fr 2fr 1fr 50px; to see how fr value works. More info you will find at gridbyexample.com/video/
from gridgarden.
Oh, thanks. I see. Something like the flex property. Ok, let's continue levels
from gridgarden.
Must add, I was breezing through happily until 21 as well, then I was jut completely confused what was expected, maybe an example was needed or to be explained first! apart from that been great :)
from gridgarden.
OwenMelbz, I think that these learning games should not explain subtlety of implementations. There are w3c and MDN specifications for this purpose. It will be more useful that people themselves explore and dive into the subject. But tasks must be more clear and understandable for novices!
from gridgarden.
I admit I got stuck for a moment myself, but figured it out after 1 Google search. Maybe not such a bad thing to require this type of outside exploration.
from gridgarden.
same here = css tricks, smashing, and other solutions did not work after trying things listed above - i finally came over here to see if I was alone with this issue, lol. Also, of the various things tried, the visual layout of the attempts in error was the same as the solution provided here.
from gridgarden.
Awesome discussion. I'll be beefing up this level's explanations using @jensenak's wording, and adding a couple new levels to explore the concept of fr
further.
from gridgarden.
Related Issues (20)
- Add Finnish translation HOT 1
- Vietnamese review recommended HOT 1
- any random value for grid-column-end fills row HOT 1
- Feat request: Store progress in localStorage or indexedDB HOT 1
- Support multiple possible answers HOT 2
- Level 24 Won't Accept 50px repeat(3, 1fr) 50px HOT 1
- level 14 Question is incomprehensible HOT 1
- Level 24 breaks on some screen sizes HOT 1
- add a bunny
- N/A
- About node_modules folder HOT 2
- .
- Grid Garden Level 26 HOT 2
- Level 8 completes without writing any values
- Azerbaijan language HOT 3
- add grid guide lines
- Misleading wording in level 23
- A lot of mistakes in the Arabic translation HOT 1
- The code is not well structure
- 8 level
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gridgarden.