News for hackers. Stuff that matters.
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); };
Re:Use ReactJS to Build Native Apps by drcode on Thursday January 29, 2015 @03:31PM (#8968648)
That only works for one dimension, can't handle square in landscape rect.