snipt

Ctrl+h for KB shortcuts

CSS

Fake Pixel Perfect

/* A nice way to overlay a PSD over the HTML for pixel perfect styling */

.rbanh {
    background: url("/images/about.png") no-repeat scroll 0 0 transparent;
    height: 1010px;
    left: 0;
    opacity: 0.5;
    position: absolute;
    top: 0;
    width: 1280px;
    z-index: 9999;
}
https://snipt.net/embed/8e0f1c81fec978de89448814bc964a75/
/raw/8e0f1c81fec978de89448814bc964a75/
8e0f1c81fec978de89448814bc964a75
css
CSS
12
2019-08-19T17:19:49
True
False
False
Nov 26, 2012 at 09:42 AM
/api/public/snipt/50772/
fake-pixel-perfect
<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> <a href="#L-8"> 8</a> <a href="#L-9"> 9</a> <a href="#L-10">10</a> <a href="#L-11">11</a> <a href="#L-12">12</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">/* A nice way to overlay a PSD over the HTML for pixel perfect styling */</span> </span><span id="L-2"><a name="L-2"></a> </span><span id="L-3"><a name="L-3"></a><span class="nc">.rbanh</span> <span class="p">{</span> </span><span id="L-4"><a name="L-4"></a> <span class="nb">background</span><span class="o">:</span> <span class="sx">url(&quot;/images/about.png&quot;)</span> <span class="nb">no-repeat</span> <span class="nb">scroll</span> <span class="m">0</span> <span class="m">0</span> <span class="nb">transparent</span><span class="p">;</span> </span><span id="L-5"><a name="L-5"></a> <span class="nb">height</span><span class="o">:</span> <span class="m">1010px</span><span class="p">;</span> </span><span id="L-6"><a name="L-6"></a> <span class="nb">left</span><span class="o">:</span> <span class="m">0</span><span class="p">;</span> </span><span id="L-7"><a name="L-7"></a> <span class="nb">opacity</span><span class="o">:</span> <span class="m">0</span><span class="o">.</span><span class="m">5</span><span class="p">;</span> </span><span id="L-8"><a name="L-8"></a> <span class="nb">position</span><span class="o">:</span> <span class="nb">absolute</span><span class="p">;</span> </span><span id="L-9"><a name="L-9"></a> <span class="nb">top</span><span class="o">:</span> <span class="m">0</span><span class="p">;</span> </span><span id="L-10"><a name="L-10"></a> <span class="nb">width</span><span class="o">:</span> <span class="m">1280px</span><span class="p">;</span> </span><span id="L-11"><a name="L-11"></a> <span class="nb">z-index</span><span class="o">:</span> <span class="m">9999</span><span class="p">;</span> </span><span id="L-12"><a name="L-12"></a><span class="p">}</span> </span></pre></div> </td></tr></table>
css, image, overlay, pixelperfect