0

This is how I structure the element

This is result so far

I have tried with both <h3 style="vertical-align:middle;height:250px;"> and <h3 style="vertical-align:middle;height:inherit;"> but nothing happens I tried to google but still don't understand which element should I style as height:...px and which element should I height:inherit

Please guide, thanks

Community
  • 1
  • 1
Artisan
  • 4,042
  • 13
  • 37
  • 61

1 Answers1

0

vertical-align only works on inline elements (e.g. <span> or <a>). Since <h3> has a default display value of block, you'll have to set it to be displayed as inline, choose another tag or use another method of vertically aligning things (for example flexbox).

MateBoy
  • 454
  • 1
  • 4
  • 14