4 ms·
using translate() you can center variable width/height stuff too (without the table stuff): http://css-tricks.com/centering-percentage-widthheight-elements/ htt
by chriscoyier 13y ago
using translate() you can center variable width/height stuff too (without the table stuff): http://css-tricks.com/centering-percentage-widthheight-elements/ http://css-tricks.com/centering-percentage-widthheight-eleme...
- crazygringo 13y agoWow, 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!