snipt

Ctrl+h for KB shortcuts

CSS

Css min-height hack

1
2
3
4
5
selector {
  min-height:500px;
  height:auto !important;
  height:500px;
}
https://snipt.net/embed/4f159dc090aa3d27c76998925d1660de/
/raw/4f159dc090aa3d27c76998925d1660de/
4f159dc090aa3d27c76998925d1660de
css
CSS
5
2019-07-15T23:00:58
True
False
False
/api/public/snipt/361/
css-min-height-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> <a href="#L-5">5</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">selector</span> <span class="p">{</span> </span><span id="L-2"><a name="L-2"></a> <span class="nb">min-height</span><span class="o">:</span><span class="m">500px</span><span class="p">;</span> </span><span id="L-3"><a name="L-3"></a> <span class="nb">height</span><span class="o">:</span><span class="nb">auto</span> <span class="cp">!important</span><span class="p">;</span> </span><span id="L-4"><a name="L-4"></a> <span class="nb">height</span><span class="o">:</span><span class="m">500px</span><span class="p">;</span> </span><span id="L-5"><a name="L-5"></a><span class="p">}</span> </span></pre></div> </td></tr></table>
css