Re:CSS is unnecessary given a layout language
by girvo on Thursday July 03, 2014 @10:15PM
(#7986946)
GSS will though! http://gridstylesheets.org/
Does GSS work with Reactjs? If so, I might give it a try.
If GSS doesn't touch the markup, I think it would.
Re:CSS is unnecessary given a layout language
by timdorr on Thursday July 03, 2014 @10:56PM
(#7987089)
Huh? Flexbox will certainly let you do this: http://plnkr.co/edit/taXhuM4tetbNTlaKyjDr?p=preview (you shouldn't see any of the red box, just the green box)
Am I misinterpreting what you mean?
> Am I misinterpreting what you mean?
Yes. The red one should be a rectangle and the green one a square. In your case the red one is also a square.
Has anyone assembled a list of things such as this that CSS cannot do?
FlexBox always felt like it was a direct response to a few specific cases rather than a generalized gain in flexibility.
Re:CSS is unnecessary given a layout language
by DougWebb on Thursday July 03, 2014 @10:47PM
(#7987060)
I'm pretty sure FlexBox solves the "Why the hell can't I center these things vertically relative to one another?!?" problem that CSS has had for a very long time. Unfortunately, that wasn't the only problem CSS has had. Now we have to wait for CSS Grids, which look awesome and all, but based on history (floats, positioning, inline-blocks, flexbox) I'm not getting my hopes up that Grids will finally make CSS layouts reasonably adequate. (I'm not even raising the bar to 'usable'.)
CSS will not let you do this, even with flexbox.