when I have a div containing an img, and the image width is set to 60 using css, the div width is set to width:auto, shouldn't the div hug right around the image and keep a width of 60 +padding?
<div style="width:auto" >
<img src=... width="60" >
</div>
But when displayed, the div stretches to full size of its container, which is a Td.
why is it not autosized to the img? do I misunderstand the property of width:auto?
Start Free Trial