Using CSS To Allow Text To Expand Upward And Downward Horizontally From The Center
Posted on 2016-09-13
I have text dynamically added to a web page heading. The heading allows for 2 lines of text contained in a single web control. The text will automatically wrap if needed. If the heading is one line it appears in the center of the page heading i.e. there is equal space above and below the text in the heading. If I have 2 lines of text the web control expands from the horizontal center of the page heading such that the 1st line is positioned up half the line height and the 2nd line is pushed down half the line height. The result is a heading which is again centered horizontally within the page heading.
Any suggestions from the experts is most appreciated on how to accomplish this via CSS.
Thank you kindly,