snipt

Ctrl+h for KB shortcuts
Notice: Snipt is moving away from free accounts on May 1st, 2014. Read more about the transition here.
#33507

CSS

Crossbrowser inline-block property

1
2
3
4
5
6
#menu li {
	display:inline-block;

	zoom: 1;
	*display:inline;
}
https://snipt.net/embed/63e13543ee9b91c5869ff2a4c03acc24/
https://snipt.net/raw/63e13543ee9b91c5869ff2a4c03acc24/
63e13543ee9b91c5869ff2a4c03acc24
css
CSS
6
2014-04-18T05:45:21
True
False
/api/public/snipt/33507/
crossbrowser-inline-block-property
<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="nf">#menu</span> <span class="nt">li</span> <span class="p">{</span> </span><span id="L-2"><a name="L-2"></a> <span class="k">display</span><span class="o">:</span><span class="k">inline</span><span class="o">-</span><span class="k">block</span><span class="p">;</span> </span><span id="L-3"><a name="L-3"></a> </span><span id="L-4"><a name="L-4"></a> <span class="n">zoom</span><span class="o">:</span> <span class="m">1</span><span class="p">;</span> </span><span id="L-5"><a name="L-5"></a> <span class="o">*</span><span class="k">display</span><span class="o">:</span><span class="k">inline</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>
block, crossbrowser, css, display, fix, ie, inline
#2239

CSS

CSS Transparency Settings for All Browsers

1
2
3
4
5
6
.transparent_class {  
     filter:alpha(opacity=50);  
     -moz-opacity:0.5;  
     -khtml-opacity: 0.5;  
     opacity: 0.5;  
} 
https://snipt.net/embed/c6b1d385cdea40cb6614ca2b85cf1004/
https://snipt.net/raw/c6b1d385cdea40cb6614ca2b85cf1004/
c6b1d385cdea40cb6614ca2b85cf1004
css
CSS
6
2014-04-21T08:58:58
True
False
/api/public/snipt/2239/
css-transparency-settings-for-all-browsers
<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="nc">.transparent_class</span> <span class="p">{</span> </span><span id="L-2"><a name="L-2"></a> <span class="n">filter</span><span class="o">:</span><span class="n">alpha</span><span class="p">(</span><span class="k">opacity</span><span class="o">=</span><span class="m">50</span><span class="p">);</span> </span><span id="L-3"><a name="L-3"></a> <span class="o">-</span><span class="n">moz</span><span class="o">-</span><span class="k">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-4"><a name="L-4"></a> <span class="o">-</span><span class="n">khtml</span><span class="o">-</span><span class="k">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-5"><a name="L-5"></a> <span class="k">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-6"><a name="L-6"></a><span class="p">}</span> </span></pre></div> </td></tr></table>
crossbrowser, css, png, transparency
#2229

CSS

Cross Browser Minimum Height

1
2
3
4
5
#container{  
height:auto !important;/*all browsers except ie6 will respect the !important flag*/  
min-height:500px;  
height:500px;/*Should have the same value as the min height above*/  
}
https://snipt.net/embed/b2cfa34ba0be197ade529844635a3b73/
https://snipt.net/raw/b2cfa34ba0be197ade529844635a3b73/
b2cfa34ba0be197ade529844635a3b73
css
CSS
5
2014-04-23T16:10:09
True
False
/api/public/snipt/2229/
cross-browser-minimum-height
<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></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a><span class="nf">#container</span><span class="p">{</span> </span><span id="L-2"><a name="L-2"></a><span class="k">height</span><span class="o">:</span><span class="k">auto</span> <span class="cp">!important</span><span class="p">;</span><span class="c">/*all browsers except ie6 will respect the !important flag*/</span> </span><span id="L-3"><a name="L-3"></a><span class="k">min-height</span><span class="o">:</span><span class="m">500px</span><span class="p">;</span> </span><span id="L-4"><a name="L-4"></a><span class="k">height</span><span class="o">:</span><span class="m">500px</span><span class="p">;</span><span class="c">/*Should have the same value as the min height above*/</span> </span><span id="L-5"><a name="L-5"></a><span class="p">}</span> </span></pre></div> </td></tr></table>
crossbrowser, css, height, min