-
Notifications
You must be signed in to change notification settings - Fork 300
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
Level 26. Making 5 rows. #66
Comments
You almost have the solution except you've left 40px of space up top instead of 50px. |
This issue highlights the needs for hints in the game. I couldn't figure out the answer to this level either until I found this issue. |
|
You could also do: |
|
Why is this solution not accepted?
|
I kind of agree that this one was a bit vague. I solved it with Awesome project by the way, thanks for making this Thomas! |
it has to be an error because it says the water should only fill the 5th row |
grid-template-rows: 50px 0 0 0 1fr; |
I don't understand after spending hours trying to find a solution, I came up with this: |
@yofriadi how you get that? did you make some calculation? any explain? o just testing the mesure?
|
4 x 12.5px = 50px (takes care of the 50px gap at the top and uses 4 rows) I was stuck too on this one. The explanation is a bit cryptic but now I see the solution, it's clearer. |
this is my ansower: |
This can be handled with various combinations |
Thanks :) |
Hi, I found the lvl 26 hard to understand and many people had an issue with it - thomaspark#73 - thomaspark#23 - thomaspark#66 I think adding emphasis on the last row to make it clearer that others must stay empty may be enough for everyone to understand better what we should do.
Mine was : grid-template-rows: 50px 0 0 0 :) |
However, 1fr is not even needed at the end. It is solved with: grid-template-rows: repeat(4, 12.5px); |
I think the difficulty lies here: you'll need to create 5 rows in total. One must interpret the question properly (5 rows are needed). Then the answer is straightforward. 50px 0 0 0 1fr Which means: 1st column: 50px The water is set to fill the fifth column, so... All the carrots in the 5th column and the water filling this same column |
the answer is grid-template-rows:repeat(4, 12.5px) 1fr |
Also: |
I just did this exercise and ran into the same problem. I came here and found the solution. |
|
my answer --- grid-template-rows: 50px repeat(3, 0) auto; |
grid-template-rows: 12.5px 12.5px 12.5px 12.5px 1fr; |
This also works |
It's a great answer. but I noticed it also works without the 1fr in the end. |
Great catch! |
grid-template-rows: 50px repeat(3, 0px); |
There need to be 5 rows - this is defacto. So, the first "area" is to be of 50px. The last area will be 1fr to water the whole carrot row length. The first unwatered 50px can be done in various ways, as long as it takes 4 rows of any size, since it excludes the last area of 1fr as mentioned above. Solution: :)) |
Here's the best possible answer: grid-template-rows: repeat(3, 10px) 20px 1fr; |
grid-template-rows: 50px repeat(3, 0); |
grid-template-rows: repeat(4,12.5px) 1fr; |
Useful Thread - solved it with: |
Thanks for the help. Was having trouble with this one. |
The challange description says, that I should make 5 rows using grid-template-rows.
I made it, but it doesn't work. Here is my line of code:
grid-template-rows: repeat(4, 10px) 1fr;
And it shows, how, I think, it should look like:
The text was updated successfully, but these errors were encountered: