I am a new web developer trying to make my sites compliant with web standards, but there is an effect I want to achieve that I can’t see how to using divs and css. Maybe someone can help.
I want to lay pages out in rows where each row has one or more images on the left and a few lines of text on the right, with the images and text all on the same baseline. The images are of various heights, widths and orientations.
Basically what I want in each row therefore is an image or series of images on the left and a box to the right of these that automatically has the same height as the highest image and has text sitting on the bottom.
I know how to style an image to float to the left and put a div to the right of it, but how do I get the div to take on the height of the image? And if I can do that, how do I get the text to site on the bottom of the div? I am thinking I can’t do it by styling the div to have a specified height because the divs on different rows need different heights.
Many thanks to anyone with the answer.