In this example, we use the line-height property with a value that is equal to the height property to center the div element:
I am vertically and horizontally centered.