I know you can do it with a single line by setting the line-height
, but my data might take up more than one line. I tried doing something with setting display:table
for parent and display:table-cell
for the child, but I couldn't get it to work.
Here is my jsfiddle