Center alignment for single line text with known parent height.