Currently, I am in the process of designing a Tumblr theme and have encountered an issue with the avatar image being displayed next to the content. The problem is that the image is larger than the section it's supposed to be contained in, causing it to break out. Here is a visual representation:
How can I ensure that the image stays within the confines of the designated section?
HTML:
<article id="" class="answer">
<section class="question">
<img src="http://33.media.tumblr.com/avatar_75879837bcba_128.png" alt=""><p class="asker"><a href="#">George</a> asked</p><p class="question">This is my question. I want to know what you're going to do about this. Is it a good idea?
</section>
<p>Answer</p>
</article>
CSS:
.question { padding: 0 2em; }
article { margin: 1.5em auto; }
.question img { float: left; }
.question img { width: auto; height: 100%; }