Image/ Text vertical align

Avatar
  • Answered
I want to make my text align vertically in the middle of the image it is next to. I can only get them to align at the top of the image. I am using boldgrid and I tried to mess around with some css but I can't get it to do what I want.
Not sure what else to try. It is in its own column and its own content area.
Avatar
johnpaulb-imhs1
Hello, Thank you for your question regarding vertically aligning Image and Text. Here is a link to a possible solution from the official WordPress forums, where they provide several suggestions. Such as "have the image inside the same block element as the text" for example:
&ltdiv&gt &ltimg src="url-to-img" alt="Image" style="vertical-align: middle;"&gtLorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris sodales.&lt/div&gt
Thank you, John-Paul