snipt

Ctrl+h for KB shortcuts

CSS

Media query for iPhone 4

@media only screen and (-webkit-min-device-pixel-ratio: 2) { }
https://snipt.net/embed/d1479c051b595823de4b2921a8e962e9/
/raw/d1479c051b595823de4b2921a8e962e9/
d1479c051b595823de4b2921a8e962e9
css
CSS
1
2019-05-23T12:42:35
True
False
False
/api/public/snipt/35154/
media-query-for-iphone-4
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="k">@media</span> <span class="nt">only</span> <span class="nt">screen</span> <span class="nt">and</span> <span class="o">(</span><span class="nt">-webkit-min-device-pixel-ratio</span><span class="o">:</span> <span class="nt">2</span><span class="o">)</span> <span class="p">{</span> <span class="p">}</span> </span></pre></div> </td></tr></table>
media, query