I am trying to align the text in h1 vertically to the middle, because since the text can be wrapped, it should look good, be it 1 line or 2.
This is the css I'm using:
h1 { font-size: 12pt; line-height: 10pt; min-height: 30px; vertical-align: middle; }
html is pretty simple:
<h1>title</h1>
No matter what value I entered for vertical-align , the text is always at the top of the h1 element.
Am I missing an understanding of the vertical-align property?
Naatan
source share