Hi there,

I've been using CSS for about a year now but I have a problem I can't seem to fix and was hoping someone on this forum might have a possible solution.

I have a div tag which holds an image and within that div there is another which holds a comment which sits under the image.

Both Divs are classes that I want to use throughout a website.

The problem I have is that I want the div to re-size to fit any image that goes in but I need the comment text to be 80% of the width of the picture, no matter what size it is.

How do I acheive this when the width of the images can be different from one page to the next?