snipt

Ctrl+h for KB shortcuts

CSS

CSS Opacity

1
2
3
4
5
6
7
/* Balise opacity http://goo.gl/s9akSF */

.balise_perso {
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)"; /* IE 8 */
  filter: alpha(opacity=50); /* IE 4/5/6/7 */
  opacity: 0.5; /* IE 9 et navigateurs récents */
}
https://snipt.net/embed/1ca7133b94b3954f2056a139444acc08/
/raw/1ca7133b94b3954f2056a139444acc08/
1ca7133b94b3954f2056a139444acc08
css
CSS
7
2019-06-24T06:24:29
True
False
False
Feb 09, 2014 at 12:39 AM
/api/public/snipt/112054/
css-opacity-1
<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">/* Balise opacity http://goo.gl/s9akSF */</span> </span><span id="L-2"><a name="L-2"></a> </span><span id="L-3"><a name="L-3"></a><span class="nc">.balise_perso</span> <span class="p">{</span> </span><span id="L-4"><a name="L-4"></a> <span class="o">-</span><span class="n">ms</span><span class="o">-</span><span class="n">filter</span><span class="o">:</span> <span class="s2">&quot;progid:DXImageTransform.Microsoft.Alpha(Opacity=50)&quot;</span><span class="p">;</span> <span class="c">/* IE 8 */</span> </span><span id="L-5"><a name="L-5"></a> <span class="n">filter</span><span class="o">:</span> <span class="n">alpha</span><span class="p">(</span><span class="nb">opacity</span><span class="o">=</span><span class="m">50</span><span class="p">);</span> <span class="c">/* IE 4/5/6/7 */</span> </span><span id="L-6"><a name="L-6"></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 class="c">/* IE 9 et navigateurs récents */</span> </span><span id="L-7"><a name="L-7"></a><span class="p">}</span> </span></pre></div> </td></tr></table>
css, opacity