With just 3 lines of CSS we can with the help of transform: translateY() vertically align whatever we want with CSS….

Fuente: Vertical align anything with just 3 lines of CSS –