 <p>The issue is that the images change the height of the div. You can keep them from doing that by floating them. Also, if you want them to always fit within the container, you'll need to adjust the width of the images. So, something like this might work:</p> <pre><code>#cool img { float:left; width:25%; height: auto; } </code></pre> <p>In the interest of creating semantic HTML, you may want to change your markup to something more like the following:</p> <pre><code>&lt;nav&gt; &lt;ul&gt; &lt;li&gt;&lt;a href="#"&gt;&lt;img src="/my/cool/image.png" alt="Menu item 1"/&gt;&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;&lt;img src="/my/cool/image.png" alt="Menu item 2"/&gt;&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;&lt;img src="/my/cool/image.png" alt="Menu item 3"/&gt;&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/nav&gt; </code></pre>