Vertical align everything using CSS

It is very hard to align a CSS vertical centering.? But let me show you how it is done.

We need a parent element and a child element to do this.

after we have the HTML markup we will now go into CSS.

It works even in IE9….


What about using Flexbox



Now we can center align everything using our favorite CSS even we dont know the height of our element. Happy Coding!