News for hackers. Stuff that matters.
Re:Flexbox in 5 minutes by _devbryce on Tuesday March 03, 2015 @01:04PM (#9139331)
Author/Creator of FlexboxIn5 here:

I'm glad to see this thread, because there seem to be some bugs I need to address.

Any other features you guys would find helpful? Feel free to tell me here or on twitter: @_devbryce

Re:Flexbox in 5 minutes by PeterWhittaker on Tuesday March 03, 2015 @01:19PM (#9139482)
Let people know cookies are required. It took me a moment to realize that's why nothing was happening.

Then ask whether you really require cookies. What value do they add?

Re:Flexbox in 5 minutes by PeterWhittaker on Tuesday March 03, 2015 @04:03PM (#9140726)
I'm really confused by the downvoting on this site.

The page fails to work if cookies are disabled. That is a fact. Some people - a minority, perhaps - disable cookies and other technologies, often for privacy reasons. That is also a fact.

(We could discuss the ins and outs of that discussion, the value proposition, the efficacy, etc., but none of those change those two simple facts.)

Another fact: Sites that use cookies must announce this use in certain jurisdictions. Again we could discuss the merits of this requirement, but that would not change the fact of it.

So were the downvotes for stating facts or for questioning a design decision?

I would have thought HN folks were rather keen on both facts and design discussions.

Perhaps I'm wrong. I'm definitely surprised. Ah well.

Re:Flexbox in 5 minutes by huckyaus on Tuesday March 03, 2015 @05:18PM (#9141185)
Step 32 has me scratching my head. I've set the suggested property values, but all of the elements still shrink at a uniform rate when I click resize box.

Am I missing something, or is there an error/omission in the instructions?

Re:Flexbox in 5 minutes by ntucker on Wednesday March 04, 2015 @01:30AM (#9142982)
Me too. And on 34, "You'll see that when the item reaches its flex basis, it stops flexing and something else has to flex" doesn't actually seem to be true. Can't tell if there's a bug or if it's something I've done wrong.
Re:Flexbox in 5 minutes by mjrpes on Wednesday March 04, 2015 @02:41AM (#9143155)
Yes, me too. Chrome 41.0.2272.76m
Re:Flexbox in 5 minutes by mjrpes on Wednesday March 04, 2015 @02:36AM (#9143137)
I'm still confused with flex-grow (step 28). When I set the value of an item to 2 while the other items remain at 1, it increase in width a little bit but not nearly twice as much (relative to the others). What does 2 actual do here?

Chrome 41.0.2272.76 m

Re:Flexbox in 5 minutes by Excavator on Wednesday March 04, 2015 @01:07PM (#9146112)
As I recall it, the available space is divided by the sum.

So in this case the width for "2" would be: 2 * (available_width / (1 * other_items + 2))