Re:Use ReactJS to Build Native Apps
by vkjv on Thursday January 29, 2015 @01:26PM
(#8967929)
Are you excluding hacks? Because you can do this pretty easily in CSS2 since padding is always relative to width. Make your square div { width: 100%; height: 0; padding-bottom: 100% (or whatever ratio you want, doesn't have to be 1:1); };
[ Parent
| on HN ]