How to Vertically Center Text with CSS ? - GeeksforGeeks
![How to Vertically Center Text with CSS ? - GeeksforGeeks](https://media.geeksforgeeks.org/wp-content/uploads/20211101113155/4.png)
A Computer Science portal for geeks. It contains well written, well thought and well explained computer science and programming articles, quizzes and practice/competitive programming/company interview Questions.
A computer science portal for geeks. It contains well written, well thought and well explained computer science and programming articles, quizzes and practice/competitive programming/company interview Questions.
In this article, we will learn how to align the text vertically using CSS. But, we can align the center blocks vertically, by combining a few properties. The trick is to specify the outer block to be formatted as a table cell because the contents of a table cell can
![](https://media.geeksforgeeks.org/wp-content/uploads/20211101111913/3.png)
How to Vertically Center Text with CSS ? - GeeksforGeeks
![](https://media.geeksforgeeks.org/wp-content/uploads/20211101113155/4.png)
How to Vertically Center Text with CSS ? - GeeksforGeeks