GithubHelp home page GithubHelp logo

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 about gridgarden HOT 10 CLOSED

thomaspark avatar thomaspark commented on May 2, 2024 2
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

from gridgarden.

Comments (10)

burnoutberni avatar burnoutberni commented on May 2, 2024 1

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.

hmaesta avatar hmaesta commented on May 2, 2024 1

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.

jensenak avatar jensenak commented on May 2, 2024 1

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.

 avatar commented on May 2, 2024

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.

4ront avatar 4ront commented on May 2, 2024

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

from gridgarden.

OwenMelbz avatar OwenMelbz commented on May 2, 2024

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.

4ront avatar 4ront commented on May 2, 2024

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.

codelinde avatar codelinde commented on May 2, 2024

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.

caramiame avatar caramiame commented on May 2, 2024

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.

thomaspark avatar thomaspark commented on May 2, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.