3 ms·
My personal trick is to position the content absolutely at 50% (both left and top), and then transform the content using a -50% translate in both directions. W
by amelius 12y ago
My personal trick is to position the content absolutely at 50% (both left and top), and then transform the content using a -50% translate in both directions.
Works for dynamically sized content (and statically sized content as well, obviously).
- talmand 12y agoBut then people whine about no support for a six-year old browser.