snipt

Ctrl+h for KB shortcuts

CSS

CSS3 box shadow

1
2
3
-webkit-box-shadow: 5px 5px 5px 5px rgba(0, 0, 0, 0.5);
-moz-box-shadow: 5px 5px 5px 5px rgba(0, 0, 0, 0.5);
box-shadow: 5px 5px 5px 5px rgba(0, 0, 0, 0.5); 
https://snipt.net/embed/72bf3d7c7d4785a4786fb3fd21bcab23/
https://snipt.net/raw/72bf3d7c7d4785a4786fb3fd21bcab23/
72bf3d7c7d4785a4786fb3fd21bcab23
css
CSS
3
2016-09-22T12:27:01
True
False
False
/api/public/snipt/37638/
css3-box-shadow-4
<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 id="L-1"><a name="L-1"></a><span class="nt">-webkit-box-shadow</span><span class="o">:</span> <span class="nt">5px</span> <span class="nt">5px</span> <span class="nt">5px</span> <span class="nt">5px</span> <span class="nt">rgba</span><span class="o">(</span><span class="nt">0</span><span class="o">,</span> <span class="nt">0</span><span class="o">,</span> <span class="nt">0</span><span class="o">,</span> <span class="nt">0</span><span class="nc">.5</span><span class="o">);</span> </span><span id="L-2"><a name="L-2"></a><span class="nt">-moz-box-shadow</span><span class="o">:</span> <span class="nt">5px</span> <span class="nt">5px</span> <span class="nt">5px</span> <span class="nt">5px</span> <span class="nt">rgba</span><span class="o">(</span><span class="nt">0</span><span class="o">,</span> <span class="nt">0</span><span class="o">,</span> <span class="nt">0</span><span class="o">,</span> <span class="nt">0</span><span class="nc">.5</span><span class="o">);</span> </span><span id="L-3"><a name="L-3"></a><span class="nt">box-shadow</span><span class="o">:</span> <span class="nt">5px</span> <span class="nt">5px</span> <span class="nt">5px</span> <span class="nt">5px</span> <span class="nt">rgba</span><span class="o">(</span><span class="nt">0</span><span class="o">,</span> <span class="nt">0</span><span class="o">,</span> <span class="nt">0</span><span class="o">,</span> <span class="nt">0</span><span class="nc">.5</span><span class="o">);</span> </span></pre></div> </td></tr></table>
css3, shadow

CSS

drop shadow box

1
2
3
     -webkit-box-shadow: 0 3px 5px rgba(0,0,0,0.5) ;
     -moz-box-shadow: 0 3px 5px rgba(0,0,0,0.5);
     box-shadow: 0 3px 5px rgba(0,0,0,0.5);
https://snipt.net/embed/0646ccba8949753ea0f7671e7769ea4f/
https://snipt.net/raw/0646ccba8949753ea0f7671e7769ea4f/
0646ccba8949753ea0f7671e7769ea4f
css
CSS
3
2016-09-26T00:50:06
True
False
False
/api/public/snipt/33804/
drop-shadow-box
<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 id="L-1"><a name="L-1"></a> <span class="nt">-webkit-box-shadow</span><span class="o">:</span> <span class="nt">0</span> <span class="nt">3px</span> <span class="nt">5px</span> <span class="nt">rgba</span><span class="o">(</span><span class="nt">0</span><span class="o">,</span><span class="nt">0</span><span class="o">,</span><span class="nt">0</span><span class="o">,</span><span class="nt">0</span><span class="nc">.5</span><span class="o">)</span> <span class="o">;</span> </span><span id="L-2"><a name="L-2"></a> <span class="nt">-moz-box-shadow</span><span class="o">:</span> <span class="nt">0</span> <span class="nt">3px</span> <span class="nt">5px</span> <span class="nt">rgba</span><span class="o">(</span><span class="nt">0</span><span class="o">,</span><span class="nt">0</span><span class="o">,</span><span class="nt">0</span><span class="o">,</span><span class="nt">0</span><span class="nc">.5</span><span class="o">);</span> </span><span id="L-3"><a name="L-3"></a> <span class="nt">box-shadow</span><span class="o">:</span> <span class="nt">0</span> <span class="nt">3px</span> <span class="nt">5px</span> <span class="nt">rgba</span><span class="o">(</span><span class="nt">0</span><span class="o">,</span><span class="nt">0</span><span class="o">,</span><span class="nt">0</span><span class="o">,</span><span class="nt">0</span><span class="nc">.5</span><span class="o">);</span> </span></pre></div> </td></tr></table>
"drop shadow", shadow

CSS

Simple Focus Shadow

1
2
3
4
5
6
form input[type="text"]:focus, form input[type="email"]:focus, form input[type="password"]:focus, form textarea:focus,.inputFocus,input.inputFocus{
  background: none repeat scroll 0 0 #FFFF88;
  -webkit-box-shadow:0 0 6px #4096EE;
  -moz-box-shadow:0 0 5px #4096EE;
  box-shadow:0 0 5px #4096EE;
}
https://snipt.net/embed/aa394ccf1bb143da1a42c1c3555174ad/
https://snipt.net/raw/aa394ccf1bb143da1a42c1c3555174ad/
aa394ccf1bb143da1a42c1c3555174ad
css
CSS
6
2016-09-22T04:50:55
True
False
False
/api/public/snipt/30214/
simple-focus-shadow
<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></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a><span class="nt">form</span> <span class="nt">input</span><span class="o">[</span><span class="nt">type</span><span class="o">=</span><span class="s2">&quot;text&quot;</span><span class="o">]</span><span class="nd">:focus</span><span class="o">,</span> <span class="nt">form</span> <span class="nt">input</span><span class="o">[</span><span class="nt">type</span><span class="o">=</span><span class="s2">&quot;email&quot;</span><span class="o">]</span><span class="nd">:focus</span><span class="o">,</span> <span class="nt">form</span> <span class="nt">input</span><span class="o">[</span><span class="nt">type</span><span class="o">=</span><span class="s2">&quot;password&quot;</span><span class="o">]</span><span class="nd">:focus</span><span class="o">,</span> <span class="nt">form</span> <span class="nt">textarea</span><span class="nd">:focus</span><span class="o">,</span><span class="nc">.inputFocus</span><span class="o">,</span><span class="nt">input</span><span class="nc">.inputFocus</span><span class="p">{</span> </span><span id="L-2"><a name="L-2"></a> <span class="k">background</span><span class="o">:</span> <span class="k">none</span> <span class="k">repeat</span> <span class="k">scroll</span> <span class="m">0</span> <span class="m">0</span> <span class="m">#FFFF88</span><span class="p">;</span> </span><span id="L-3"><a name="L-3"></a> <span class="o">-</span><span class="n">webkit</span><span class="o">-</span><span class="n">box</span><span class="o">-</span><span class="n">shadow</span><span class="o">:</span><span class="m">0</span> <span class="m">0</span> <span class="m">6px</span> <span class="m">#4096EE</span><span class="p">;</span> </span><span id="L-4"><a name="L-4"></a> <span class="o">-</span><span class="n">moz</span><span class="o">-</span><span class="n">box</span><span class="o">-</span><span class="n">shadow</span><span class="o">:</span><span class="m">0</span> <span class="m">0</span> <span class="m">5px</span> <span class="m">#4096EE</span><span class="p">;</span> </span><span id="L-5"><a name="L-5"></a> <span class="n">box</span><span class="o">-</span><span class="n">shadow</span><span class="o">:</span><span class="m">0</span> <span class="m">0</span> <span class="m">5px</span> <span class="m">#4096EE</span><span class="p">;</span> </span><span id="L-6"><a name="L-6"></a><span class="p">}</span> </span></pre></div> </td></tr></table>
css3, focus, shadow
Copyrighted, illegal, or inappropriate content? Email support@snipt.net.