Is there a way to define a generic div container so its width is dictated by an image placed inside it?For example:CSS
div.mydiv {...}
HTML
...<div class="mydiv"> <img src="myimage" /> ...</div>...
So, say my image was 340px wide, that would be the width of the div. The idea being, if the div also contained text, that text would wrap, and stay within the bounds of the images width. Maybe handy for displaying images with captions.I want to avoid making custom div's of specific widths.Thanks,Scott