Re:CSS Absolute Centering
by chriscoyier on Saturday August 10, 2013 @12:46PM
(#6191690)
using translate() you can center variable width/height stuff too (without the table stuff): http://css-tricks.com/centering-percentage-widthheight-eleme...
[ Parent
| on HN ]
Re:CSS Absolute Centering
by crazygringo on Saturday August 10, 2013 @12:55PM
(#6191734)
Wow, that's awesome. As soon as I get to drop IE8 support, I'll think about using that.
I had no idea you could use % within transforms that referred to the size of the element itself (since all other % in CSS refer to the size of a parent element).
Thanks!