I'm trying to make my images responsive but it's not working. Could someone please point out what goes wrong with my code?
HTML
<article class="main-story">
<img src="http://f.cl.ly/items/2e3c2a1Z0D1H3u0W2K12/shera.jpg" alt="Sha Ra Rocking"/>
<div class="story-intro">
<h1>Most Important Story</h1>
<p>This article has the most visual weight. <a href="http://nebezial.deviantart.com/art/she-ra-115867096">image source.</a></p>
</div>
</article>
CSS
.main-story {
position: relative;
width: 800px;
margin: 0 0 25px 0;
}
.main-story > img {
max-width: 100%;
max-height: 100%;
}
Here is my full code jsfiddle