I recently came across a tutorial in which the instructor used this syntax:
display: -webkit-box;
http://www.youtube.com/watch?v=B-MNkBh7F2A @ 2:30 (created aug 2012)
I have not seen this before and started trying to find information about it. CSS3 seems to have something called flexbox. But I could not find links to the syntax above.
In this article http://coding.smashingmagazine.com/2011/09/19/css3-flexible-box-layout-explained/ , written a year before the aforementioned tutorial (sept 2011), they use this syntax:
display: box;
and the specified block will be replaced by flexbox.
I'm still not sure if flexbox or box is good. I do not see people using it. Can someone give a general summary?
Also, why does the tutorial use -webkit-box? Is box webkit specific? Why didn’t he use
display: box;
Does -webkit-box mean that it only works in Safari and Chrome?
If it is compatible with the browser, which browsers and versions work with it?
box (non webkit) seems to be compatible with the browser.
4thSpace
source share