Vertical Center

In this example, we use positioning and the transform property to vertically center an element inside a container element:

I am vertically centered.

Note: The transform property is not supported in IE8 and earlier versions.


I am horizontally and vertically centered.