I am having a problem with vertically aligning my text which is shown on top of my image. It works fine for one resolution but as the height of the image changes the text is no longer vertically aligned.
I believe the problem is on this line: <div class="block" style="height:100%;">
If I could change the height variable to the size of the image as it resizes then I think it would work but I am not sure how to do that.
The HTML and CSS code for my problem are on a fiddle.
Any help would be greatly appreciated, thanks!