I have some labels which may or may not wordwrap. When the label wordwraps, my input element vertically aligns to the bottom of the containing div. I would like my input element to align with the center of the word-wrapped element.
I was able to achieve this through use of vertical-align: 50%
, but this had the negative side-effect of breaking alignment for non-wordwrapped label/input pairs.
I had a look at this StackOverflow post regarding alignment, but it appears to solve a different issue than the one I am experiencing.
Anyone know how to achieve this?