3 ms·
It's still impossible if you'd like to center a div that resizes itself depending on the content.
by oakaz 13y ago
It's still impossible if you'd like to center a div that resizes itself depending on the content.
- emn13 13y agonope, consider: http://codepen.io/KatieK2/pen/ucwgi http://codepen.io/KatieK2/pen/ucwgi or http://jsbin.com/uqutol/3/edit http://jsbin.com/uqutol/3/edit These have intrinsically sized (autosized) boxes that vertically and horizontally center in some container.