I've been experimenting with different methods to vertically align caption text in the middle of an image, but I haven't had much luck. I've tried using table-cells and other techniques, without success!
Currently, I have an <li>
element with a nested <a>
, <img>
, and div.caption-wrapper
. While I've set the caption wrapper to the same size as the image, I'm still struggling to position it correctly over the image.
It's clear that I need to work on the basics, but if anyone has any suggestions or solutions, I would greatly appreciate it! Here is a link to my fiddle to see where I'm at.