I have the following:
<div class="outer">
<p class="pclass">context...</p>
<div class="inner">
<img.../>
</div>
</div>
The inner div width is different depending on the image width.
The p width should depend on the image width.
P will contain some dynamic text. The problem is that if p's text is bigger than image widht, it jumps on top of the image.
I've tried to get around this by using css "text-overflow"
, but that needs a width.
Also not working, setting margin:0 on the img, hoping to make it stick to the surounding div.