Live data from Hacker News

Get on the CSS Grid

updates.html5rocks.com

1–10 of 46 posts

Re: Get on the CSS Grid

#2
This seems very similar to Java's gridbag layout manager (http://docs.oracle.com/javase/tutorial/uiswing/layout/gridba...) in terms of functionality.

I always liked the flexibility of using that layout manager (although I always managed it via visual editors) so if this does reach mainstream compatibility it could be good!

As comments on the article point out, it seems to overlap with FlexBox quite a bit though.

Re: Get on the CSS Grid

#3
post #2

This seems very similar to Java's gridbag layout manager ( http://docs.oracle.com/javase/tutorial/uiswing/layout/gridba... ) in terms of functionality. I always liked the flexibility of using that layout manager (although I always managed it via visual editors) so if this does reach mainstream compatibility it could be good! As comments on the article point out, it seems to overlap with FlexBox quite a bit though.

I think it's actually based on the grids in WPF ( http://en.wikipedia.org/wiki/Windows_Presentation_Foundation ). This is no bad thing; those grids are superb for UI layout. Look at the editors list; this comes out of MS. Again, it's good that they feed this out into web standards.

Re: Get on the CSS Grid

#5
This proposal has been around for a while (April 2011 version: http://www.w3.org/TR/2011/WD-css3-grid-layout-20110407/ ) and if I recall correctly it has been on and off the Firefox roadmap. https://wiki.mozilla.org/Platform/Roadmap#Layout

"CSS Grid Layout is coming to Firefox in 2012": http://www.2ality.com/2012/03/css-grid-layout-firefox.html

So where is Firefox support for this? Was there a good reason to delay, or was it just other priorities? Did flexbox take much longer than expected?

Re: Get on the CSS Grid

#6

I see that this draft is dated January 2014. Earlier versions go back to April 2011: http://www.w3.org/TR/2011/WD-css3-grid-layout-20110407/ What's changed in this version?

It seems the what's mostly changed is support. IE10 has it, and Chrome has it experimentally.

Re: Get on the CSS Grid

#9

So we return to tables ...

It may seem like that, but the major difference is the layout is left to the CSS. When combined with css media queries, the grid can provide a complete restructuring of the layout completely independent of the markup which would not would have been possible with tables.

Re: Get on the CSS Grid

#10

So we return to tables ...

Yep basically.But we were alreday there with .row an .col-md-3, what's the difference between this and a table ?

semantics? yeah right.

By the way, tables can be made responsive too.

Post reply on HN