snipt

Ctrl+h for KB shortcuts

HTML

Foundation - Interchange Retina IMGs

1
2
3
<!-- data-interchange="[image_path, (screen and only (min-width: 640px) and (-webkit-min-device-pixel-ratio: 2))]" -->

<img src="default.jpg" data-interchange="[default.jpg, (default)], [bigger-image.jpg, (large)]">
https://snipt.net/embed/5c214057d29bacf08926c7b7b2fbac1f/
/raw/5c214057d29bacf08926c7b7b2fbac1f/
5c214057d29bacf08926c7b7b2fbac1f
html
HTML
3
2019-07-21T02:38:15
True
False
False
Jul 01, 2013 at 03:48 PM
/api/public/snipt/66187/
foundation-interchange-retina-imgs
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="c">&lt;!-- data-interchange=&quot;[image_path, (screen and only (min-width: 640px) and (-webkit-min-device-pixel-ratio: 2))]&quot; --&gt;</span> </span><span id="L-2"><a name="L-2"></a> </span><span id="L-3"><a name="L-3"></a><span class="p">&lt;</span><span class="nt">img</span> <span class="na">src</span><span class="o">=</span><span class="s">&quot;default.jpg&quot;</span> <span class="na">data-interchange</span><span class="o">=</span><span class="s">&quot;[default.jpg, (default)], [bigger-image.jpg, (large)]&quot;</span><span class="p">&gt;</span> </span></pre></div> </td></tr></table>

HTML

Foundation 4 - Block Grids

1
2
3
4
5
6
7
<!-- Block grid syntax for Foundation 4 -->
<ul class="small-block-grid-2 large-block-grid-4">
  <li><img src="path/to/image"></li>
  <li><img src="path/to/image"></li>
  <li><img src="path/to/image"></li>
  <li><img src="path/to/image"></li>
</ul>
https://snipt.net/embed/47272083a92f7db966f65deeac9a6ee4/
/raw/47272083a92f7db966f65deeac9a6ee4/
47272083a92f7db966f65deeac9a6ee4
html
HTML
7
2019-07-21T02:51:26
True
False
False
/api/public/snipt/66182/
foundation-4-block-grids
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a> <a href="#L-6">6</a> <a href="#L-7">7</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="c">&lt;!-- Block grid syntax for Foundation 4 --&gt;</span> </span><span id="L-2"><a name="L-2"></a><span class="p">&lt;</span><span class="nt">ul</span> <span class="na">class</span><span class="o">=</span><span class="s">&quot;small-block-grid-2 large-block-grid-4&quot;</span><span class="p">&gt;</span> </span><span id="L-3"><a name="L-3"></a> <span class="p">&lt;</span><span class="nt">li</span><span class="p">&gt;&lt;</span><span class="nt">img</span> <span class="na">src</span><span class="o">=</span><span class="s">&quot;path/to/image&quot;</span><span class="p">&gt;&lt;/</span><span class="nt">li</span><span class="p">&gt;</span> </span><span id="L-4"><a name="L-4"></a> <span class="p">&lt;</span><span class="nt">li</span><span class="p">&gt;&lt;</span><span class="nt">img</span> <span class="na">src</span><span class="o">=</span><span class="s">&quot;path/to/image&quot;</span><span class="p">&gt;&lt;/</span><span class="nt">li</span><span class="p">&gt;</span> </span><span id="L-5"><a name="L-5"></a> <span class="p">&lt;</span><span class="nt">li</span><span class="p">&gt;&lt;</span><span class="nt">img</span> <span class="na">src</span><span class="o">=</span><span class="s">&quot;path/to/image&quot;</span><span class="p">&gt;&lt;/</span><span class="nt">li</span><span class="p">&gt;</span> </span><span id="L-6"><a name="L-6"></a> <span class="p">&lt;</span><span class="nt">li</span><span class="p">&gt;&lt;</span><span class="nt">img</span> <span class="na">src</span><span class="o">=</span><span class="s">&quot;path/to/image&quot;</span><span class="p">&gt;&lt;/</span><span class="nt">li</span><span class="p">&gt;</span> </span><span id="L-7"><a name="L-7"></a><span class="p">&lt;/</span><span class="nt">ul</span><span class="p">&gt;</span> </span></pre></div> </td></tr></table>
foundation, grid