Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How does the vertical-align style property work?

0
Posted

How does the vertical-align style property work?

0

How does the vertical-align style property work? I received this question from Bryden: I have a mix of upper and lower case letters but I want them to run on a center line rather than ‘sit’ on a ruled line.Answer: This is an interesting question as Bryden is attempting to treat each glyph in the text block as a separate tiny image – rather than as a part of the text block. On first review, it seems like the CSS property vertical-align would be the correct answer to this question. Perhaps this would work: h1 { vertical-align: middle; } Unfortunately, no matter which option you use in the vertical-align style property, none of them will change the location of the baseline of the text. This is because text in a Web page is set within a text box that all the glyphs in that font will fit. There is a baseline, where the bottom of the fonts will touch, a lower border, where lowercase hanging letters (such as p o

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123