I have been making a wordpress template. i got stuck at some place...
the problem is,
how to maintain the size of a div >= the size of p tags and img tags...
i have seen that the div only able to contain the p tag but the img tag over flows...
i have my code in this following order:
<div>
<p> some contents <img src="an_image"/> some morecontent</p>
<div>
what i basically want is:
div height = <p> height U(union) <img> height
but, what actually i am getting is:
div height = <p> height; while <img> over flows
i have already checked for similar questions on Stack Overflow but was not able to find one which solves a similar problem.. please give me some idea..
an update:
this is my code:
<div id="the_content">
<p><img class="alignright" src="http://i35.tinypic.com/990wtx.png" alt="WordPress Logo" align="right" />Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Curabitur quam augue, vehicula quis, tincidunt vel, varius vitae, nulla. Sed convallis orci. Duis libero orci, pretium a, <a href="#">convallis quis</a>, pellentesque a, dolor. Curabitur vitae nisi non dolor vestibulum consequat. <a href="http://localhost/wordpress/?p=55#more-55" class="more-link">(more…)</a></p>
</div>