by ChanningAllen · 10y ago · 0 comments
I've always been a big fan of tower defense games so I thought it would be cool to make an open-source version of the game for teaching basic Flexbox properties. It's also a project that's helped me learn Ember.js.
The code is on GitHub: https://github.com/channingallen/tower-defense
div.board__tower-group
div.tower-group__tower
div.tower-group__tower
div.board__tower-group--body
and, even though it's `position:absolute`, Firefox is taking that third child into account when applying `justify-content:space-between`, placing the first tower on the left and the second in the center instead of on the right.Edit: Here's the Firefox bug https://bugzilla.mozilla.org/show_bug.cgi?id=874718
It's really frustrating.
Or am I missing something, and not adjusting individual items would still work there?
Edit: Yeah, I'm missing something. /headdesk :)
seems to work.
and align-self is mentioned on wave 10.