/ Published in: CSS
If you want to vertically center text within a containing block who’s height is fixed, simply set the line-height of the text to be the same as the height of the containing block
Expand |
Embed | Plain Text
The HTML: 1 some text here The CSS: 1 div#container { 2 height: 35px; 3 line-height: 35px 4 }
You need to login to post a comment.
