snipt

Ctrl+h for KB shortcuts

CSS

Better Image Scaling and Resampling in Internet Explorer

1
2
3
4
5
6
/*
 * http://acidmartin.wordpress.com/2009/01/05/better-image-scaling-and-resampling-in-internet-explorer/
 */
img {
	-ms-interpolation-mode: bicubic;
}
https://snipt.net/embed/e33d3749908218607309b6f6fdb2fa6d/
/raw/e33d3749908218607309b6f6fdb2fa6d/
e33d3749908218607309b6f6fdb2fa6d
css
CSS
6
2019-08-09T05:47:03
True
False
False
/api/public/snipt/1780/
better-image-scaling-and-resampling-in-internet-explorer
<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></span><span id="L-1"><a name="L-1"></a><span class="c">/*</span> </span><span id="L-2"><a name="L-2"></a><span class="c"> * http://acidmartin.wordpress.com/2009/01/05/better-image-scaling-and-resampling-in-internet-explorer/</span> </span><span id="L-3"><a name="L-3"></a><span class="c"> */</span> </span><span id="L-4"><a name="L-4"></a><span class="nt">img</span> <span class="p">{</span> </span><span id="L-5"><a name="L-5"></a> <span class="o">-</span><span class="n">ms</span><span class="o">-</span><span class="n">interpolation</span><span class="o">-</span><span class="n">mode</span><span class="o">:</span> <span class="n">bicubic</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>
css, ie, image

Text only

CSS Heading Comment

/* =Heading
----------------------------------------------- */
https://snipt.net/embed/c309383a3c7fbe9dcd1ed47ae7399c0d/
/raw/c309383a3c7fbe9dcd1ed47ae7399c0d/
c309383a3c7fbe9dcd1ed47ae7399c0d
text
Text only
2
2019-08-17T06:28:23
True
False
False
/api/public/snipt/1733/
css-heading-comment
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>/* =Heading </span><span id="L-2"><a name="L-2"></a>----------------------------------------------- */ </span></pre></div> </td></tr></table>
comment, css, heading

CSS

Remove active link border

a:active, a:focus {outline:none;}
https://snipt.net/embed/608f7cdb1c1eb3f51d7ca8f2b021309c/
/raw/608f7cdb1c1eb3f51d7ca8f2b021309c/
608f7cdb1c1eb3f51d7ca8f2b021309c
css
CSS
1
2019-07-31T14:10:09
True
False
False
/api/public/snipt/1725/
remove-active-link-border
<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="nt">a</span><span class="nd">:active</span><span class="o">,</span> <span class="nt">a</span><span class="nd">:focus</span> <span class="p">{</span><span class="nb">outline</span><span class="o">:</span><span class="nb">none</span><span class="p">;}</span> </span></pre></div> </td></tr></table>
border, css, link, remove

CSS

Always show Firefox scrollbar

html {overflow:-moz-scrollbars-vertical;}
https://snipt.net/embed/f7a54eaf92be07c9fc613a0034d8a12d/
/raw/f7a54eaf92be07c9fc613a0034d8a12d/
f7a54eaf92be07c9fc613a0034d8a12d
css
CSS
1
2019-08-19T12:54:13
True
False
False
/api/public/snipt/1724/
always-show-firefox-scrollbar
<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="nt">html</span> <span class="p">{</span><span class="nb">overflow</span><span class="o">:-</span><span class="n">moz</span><span class="o">-</span><span class="n">scrollbars</span><span class="o">-</span><span class="n">vertical</span><span class="p">;}</span> </span></pre></div> </td></tr></table>
css, firefox, scrollbar

Text only

all css/php one line comments

/\*([^\*]|[^/].*?)\*/
https://snipt.net/embed/87b7554c82716e0bbfb8b8df2eafdaef/
/raw/87b7554c82716e0bbfb8b8df2eafdaef/
87b7554c82716e0bbfb8b8df2eafdaef
text
Text only
1
2019-08-07T19:58:48
True
False
False
/api/public/snipt/1562/
all-cssphp-one-line-comments
<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></pre></div> </td></tr></table>
css, php, regex

CSS

png ie6 hack

1
2
3
4
 background-image: url("trasparente.png")!important;
 background-image: none;
 filter: none !important;
 filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='imagen/trasparente.png', sizingMethod='scale');
https://snipt.net/embed/4a65570d484bfcae7f8b579ebc249299/
/raw/4a65570d484bfcae7f8b579ebc249299/
4a65570d484bfcae7f8b579ebc249299
css
CSS
4
2019-08-15T17:30:21
True
False
False
/api/public/snipt/1467/
png-ie6-hack
<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></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a> <span class="nt">background-image</span><span class="o">:</span> <span class="nt">url</span><span class="o">(</span><span class="s2">&quot;trasparente.png&quot;</span><span class="o">)!</span><span class="nt">important</span><span class="o">;</span> </span><span id="L-2"><a name="L-2"></a> <span class="nt">background-image</span><span class="o">:</span> <span class="nt">none</span><span class="o">;</span> </span><span id="L-3"><a name="L-3"></a> <span class="nt">filter</span><span class="o">:</span> <span class="nt">none</span> <span class="o">!</span><span class="nt">important</span><span class="o">;</span> </span><span id="L-4"><a name="L-4"></a> <span class="nt">filter</span><span class="o">:</span> <span class="nt">progid</span><span class="nd">:DXImageTransform</span><span class="nc">.Microsoft.AlphaImageLoader</span><span class="o">(</span><span class="nt">src</span><span class="o">=</span><span class="s1">&#39;imagen/trasparente.png&#39;</span><span class="o">,</span> <span class="nt">sizingMethod</span><span class="o">=</span><span class="s1">&#39;scale&#39;</span><span class="o">);</span> </span></pre></div> </td></tr></table>
css, ie6, png

CSS

min-height ie hack

1
2
3
min-height:500px;
height:auto !important;
height:500px;
https://snipt.net/embed/5af4f13896d2b7d09f209031a48de119/
/raw/5af4f13896d2b7d09f209031a48de119/
5af4f13896d2b7d09f209031a48de119
css
CSS
3
2019-07-31T01:53:31
True
False
False
/api/public/snipt/1437/
min-height-ie-hack
<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="nt">min-height</span><span class="nd">:500px</span><span class="o">;</span> </span><span id="L-2"><a name="L-2"></a><span class="nt">height</span><span class="nd">:auto</span> <span class="o">!</span><span class="nt">important</span><span class="o">;</span> </span><span id="L-3"><a name="L-3"></a><span class="nt">height</span><span class="nd">:500px</span><span class="o">;</span> </span></pre></div> </td></tr></table>
css, ie6, min-height