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

I try to train and I like It! Cool. But... Sorry. I don't understand 21-st level. Maybe It can be explained more intelligibly. Thanks #3

Closed
4ront opened this issue Apr 5, 2017 · 10 comments

Comments

@4ront
Copy link

4ront commented Apr 5, 2017

No description provided.

@4ront 4ront changed the title I try to trian and I like It! Cool. But... Sorry. I don't understand 21-st level. Maybe It can be explained more intelligibly. Thanks I try to train and I like It! Cool. But... Sorry. I don't understand 21-st level. Maybe It can be explained more intelligibly. Thanks Apr 5, 2017
@ghost
Copy link

ghost commented Apr 5, 2017

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/

@4ront
Copy link
Author

4ront commented Apr 5, 2017

Oh, thanks. I see. Something like the flex property. Ok, let's continue levels

@burnoutberni
Copy link

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.

@hmaesta
Copy link

hmaesta commented Apr 5, 2017

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).

@OwenMelbz
Copy link

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 :)

@4ront
Copy link
Author

4ront commented Apr 5, 2017

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!

@codelinde
Copy link

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.

@caramiame
Copy link

caramiame commented Apr 5, 2017

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.

@jensenak
Copy link

jensenak commented Apr 5, 2017

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."

@4ront 4ront closed this as completed Apr 6, 2017
@thomaspark
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants