#gallery p {position:relative;} #gallery p span{ position:absolute; height:auto; bottom:0; }
<p> <img src="" alt="" /> <span>Blablabla...</span> </p> itd..