> I agree, it would be better to do this with CSS. However, I'm having
> a heck of a time trying to get the right incantation. The issue I ran
> into that basically drove me nuts was that the div surrounding the
> image was expanding to the width of the container div, making the
> border too large. I would work if I didn't specify a specific size
> for the container div, but then the images wouldn't line up into
> columns, which looked pretty awful.
>
> Anyone have any sample CSS that would work in this situation? I'll
> take another crack at it today, but some practical examples would be
> nice. :-)
<div class="content"><img src="image.jpg"></div>
So in the CSS it could be something like:
.content img
{
border:1px solid #ccc;
padding:3px;
margin:6px;
background-color:#f9f9f9;
}
--