Skip to content

Instantly share code, notes, and snippets.

@sgnl
Created December 26, 2015 20:02
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sgnl/2b90a395809609b0f648 to your computer and use it in GitHub Desktop.
Save sgnl/2b90a395809609b0f648 to your computer and use it in GitHub Desktop.
Flex Box Froggy (http://www.flexboxfroggy.com) level 24 answer
#pond {
display: flex;
flex-flow: column-reverse wrap-reverse;
justify-content: center;
align-content: space-between;
}
@christianrubiales
Copy link

For greater challenge, try Flex Box Froggy No hints

@AgeelWebDev
Copy link

Jeez. Took me a while. Couldn't figure it out. Got the right side to work, but couldn't get the 2 yellow frogs to get to the left. Never occurred to me to use justify content: center. Still trying to wrap my head around it (no pun intended).

@thegreatgatsby1
Copy link

Damn! I was so close, I just needed to add the "-reverse" to wrap :/
But I totally forget about that :(

@SamanthaSiebert
Copy link

I had a different solution that worked for me of
#pond {
display: flex;
flex-direction: column-reverse;
flex-wrap: wrap-reverse;
justify-content: center;
align-content: space-between; 
}
I was also having a hard time getting the 2 yellow frogs to line up in their lily pads! Finally got it after the help of this forum. Thanks!

@adej0
Copy link

adej0 commented Jun 10, 2019

Fortunately,

#pond {
display: flex;
flex-direction: column-reverse;
flex-wrap: wrap-reverse;
justify-content: center;
align-content: space-between;
}

This also worked for me!

@sgnl
Copy link
Author

sgnl commented Jun 10, 2019

wow, great to know you guys are using this. It was a note for a student at the time, lol. Nice solutions

@sinozzuke
Copy link

I had a different solution that worked for me of
#pond {
display: flex;
flex-direction: column-reverse;
flex-wrap: wrap-reverse;
justify-content: center;
align-content: space-between;
}
I was also having a hard time getting the 2 yellow frogs to line up in their lily pads! Finally got it after the help of this forum. Thanks!

As it says in that froggy tutorial:

flex-direction: column-reverse;
flex-wrap: wrap-reverse;

is the same than
flex-flow: column-reverse wrap-reverse;

That's why you can write both and works.

@gregoryshaversjr
Copy link

Thank you guys. The below solution worked. Didn't think to use space-between but it makes sense.

lex-direction: column-reverse;
flex-wrap: wrap-reverse;
justify-content: center;
align-content: space-between;

@ayyappag10
Copy link

i wasn't aware of "wrap-reverse" property. so i solved it using transform,

transform: rotate(90deg);
flex-flow: row-reverse wrap;
justify-content: center;
align-content: space-between;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment