UNDERSTANDING CSS DISPLAY: FLEX WITH FLEXBOX FROGGY
Hi guys,
This is my first post on this community, I am a newbie frontend and Backend developer.
In this post i'll be sharing with you my experience on a programming game FLEXBOX-FROGGY which has been helpful for me in understanding the application of "Display: flex" on CSS
FlexboxFroggy set its display to flex, and uses its properties to set the frogs in the pond into their lilypads.
Programmers and newbies finds it difficult most times to arrange contents inside divs which has been a major issue for me also, flexbox froggy has helped me understand a few ways I can set my contents inside the divs with this game
Some of the Properties of Display: flex include;
- justify-content: center, flex-end, flex-start, space-around, space-evenly
- flex-direction: row, row-reverse, column, column-reverse
- flex-flow: This option helps use flex-direction and flex wrap together using a shorthand property by spacing them from each other
- align-item: flex-start, flex-end, center, baseline, stretch
- order: This rearranges the order in which the color of the frogs are placed using integers (-1, 0, 1, 2 etc)
- align-content: Aligns a flex container's lines within the flex container when there is extra space on the cross-axis its properties are flex-start, flex-end center, space-between, space-around, space-evenly, stretch.
- flex-wrap: Helps to arrange squeezed items, its properties are: nowrap, wrap, wrap-reverse.
- align-self: Same value as align-items and align-content but is applied only to individual item.
At the last stage of the game I was asked to arrange the frogs in their lilypads using the properties I have learnt, it was tedious at first but at last I got it.
I made use of flex-flow to apply the properties of both flex-direction and flex-wrap since the space given was limited, I also made use of align-content to share space-between the frogs and lastly justify-content to position them to the center.
Other games form Flexboxfroggy are:
Until Next Time
Stay Coded✌️
Yeah I know about this game but I haven’t played it. The one I play is by mastery games and that one is about fighting zombies with your skills in flexbox.
Check flexboxzombies by mastery games on google.
oh i havent play that one
i'll give it a trial
Congratulations @joebolite97! You have completed the following achievement on the Hive blockchain and have been rewarded with new badge(s):
Your next target is to reach 200 comments.
You can view your badges on your board and compare yourself to others in the Ranking
If you no longer want to receive notifications, reply to this comment with the word
STOP
To support your work, I also upvoted your post!
Check out the last post from @hivebuzz:
Support the HiveBuzz project. Vote for our proposal!
Hi! It's an interesting project.
BTW. Links 2, 3 and 4 at the end are the same. Also, when talking about the properties of
display: flex
and other things, add sources to them. It shouldn't be difficult since it's something rather standardized. It could help you better.Thanks for the advice
Noted
Dear @joebolite97, we need your help!
The Hivebuzz proposal already got important support from the community. However, it lost its funding a few days ago when the HBD stabilizer proposal rose above it.
May we ask you to support it so our team can continue its work?
You can do it on Peakd, Ecency, Hive.blog or using HiveSigner.
https://peakd.com/me/proposals/199
All votes are helpful and yours will be much appreciated.
Thank you!