I have an image and some text inside a div and I'd like to put the image and the text div in the vertical center of the row div using CSS. The problem is that I don't know how many lines of text I will have but the text and the image must be ALWAYS in the middle. For example, when there's only one line of text the div should look like this:
####################################
# _______ #
# | | #
# | | #
# | IMAGE | text text text #
# | | #
# |_______| #
# #
####################################
and if more than one lines than it should looking like this:
####################################
# #
# text text text #
# _______ text text text #
# | | text text text #
# | | text text text #
# | IMAGE | text text text #
# | | text text text #
# |_______| text text text #
# text text text #
# text text text #
# #
####################################
Here I have the jsfiddle which is my code and i want to solve this problem on attached fiddle.
jsfiddle: https://jsfiddle.net/vh3ewa54/
Note : This jsfiddle code Example is Based on Bootstrap Structure