News for hackers. Stuff that matters.
Re:Tetris and The Power Of CSS by Snowda on Sunday November 10, 2013 @09:41PM (#6709622)
Would it be better to adjust the first element rather than the last one, as the first element is most likely to be the most important?
Re:Tetris and The Power Of CSS by joshvm on Sunday November 10, 2013 @09:49PM (#6709649)
I think it's just for effect - the point of the article is determining which elements to act on. The author mentions you could just apply centering to the element instead.
Re:Tetris and The Power Of CSS by Laremere on Sunday November 10, 2013 @09:49PM (#6709651)
Depending on the logic in the site, that may be true. However you can't use the technique used here verbatim, as it relies on being able to use the last element and the nth element together to determine the number of elements and whether or not the element should be stretched.