Others
|
Written by Dicky
|
Friday, 27 July 2012 13:47 |
Say that you have a div with a certain width and height, you want to have a centered text in the middle of that box. Unfortunately, the vertical-align won't work on a div. I did a bit of research and found this article on how to vertical align a text but unfortunately it will only work if it's a one-liner. However, I found out that if you are in table cell, then you could center and vertical-align the text as easy. |
Read more...
|