Ran into a bit of a problem I'm not sure how to solve. I've got this gallery page which consists of thumbnails, each thumbnail has a caption to go with it. The problem I'm having is when a caption has more than one line of text the caption box gets bigger, that's fine and all but I'd like the caption box to be aligned to the bottom so it looks normal.
Here's the problem as I see it. You have a caption with an indeterminate height (because of the varied amount of text)...so you can't position it over the image AND have it line up to the bottom of the image because you don't know how much to adjust the position by.
Why don't you just make the caption box big enough to accomodate two lines of text and vertically align the text in the caption to sit at the top inside the caption box?
@wolfcry911, So finally I'm trying to add a credit to the thumbnail, but I'm not sure if I'm using vertical-align correctly. The aim is to have the credit centered vertically.
Ran into a bit of a problem I'm not sure how to solve. I've got this gallery page which consists of thumbnails, each thumbnail has a caption to go with it. The problem I'm having is when a caption has more than one line of text the caption box gets bigger, that's fine and all but I'd like the caption box to be aligned to the bottom so it looks normal.
This is how it looks at the moment:
And here's the CSS:
I hope I've explained what I'm trying to do, any help would be appreciated.
Thanks in advance.
Can you provide us with a link or a JsFiddle?
Here's a link: http://www.ericouture.com/gallery/test-page/
See here http://jsfiddle.net/Paulie_D/kUvb4/4/
...but I'll have a think.
Sorta works but the height won't adjust (YET) depending on the number of lines....but I'm still thinking.
Edit: Fiddle didn't update...hold on!
Re-Edit: Fixed.
http://jsfiddle.net/NZKBH/28/
Here's my fiddle at the moment:
http://jsfiddle.net/NZKBH/50/
http://codepen.io/wolfcry911/pen/CoJqH
Thanks again!