Skip to content

Commit

Permalink
Merge pull request scottjehl#210 from crohrer/patch-1
Browse files Browse the repository at this point in the history
img tag was missing the "img"
  • Loading branch information
scottjehl committed Apr 24, 2014
2 parents 8dbfee2 + 2e547ee commit 2a56f08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ <h3 id="img-sizes">Using <code>img</code> with <code>srcset</code> &amp; <code>s
<p>The <code>sizes</code> syntax is used to define the size of the image across a number of breakpoints. <code>srcset</code> then defines an array of images and their inherent sizes. It's beyond the scope of this guide to get into much detail about how to use the new <code>srcset</code> &amp; <code>sizes</code> attributes, so we'd recommend reading the following post by Eric Portis: <a href="http://ericportis.com/posts/2014/srcset-sizes/">Srcset and Sizes</a>. Read that first, then check out the demos below!</p>

<h3>An img with "srcset" and sizes" attributes:</h3>
<pre><code>&lt;sizes="100%, (min-width: 40em) 80%&quot;
<pre><code>&lt;img sizes="100%, (min-width: 40em) 80%&quot;
srcset=&quot;examples/images/pic-small.png 400w, examples/images/pic-medium.png 800w, examples/images/pic-large.png 1200w&quot; alt=&quot;Obama with soldiers&quot;&gt;
</code></pre>

Expand Down

0 comments on commit 2a56f08

Please sign in to comment.