I was using this technique http://codepen.io/chriscoyier/pen/gsodI . And it's almost good - but in the second box you can see that the content box sticks out of the outer element.
How to fix this so that if the inner element is smaller than the outer one, it gets centered, and if it's higher, it 'pushes' the outer element like in this image?
You need to give three major property to align vertically
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With