snipt

Ctrl+h for KB shortcuts

CSS

css fix

1
2
3
.scroll{position:fixed;left:980px;bottom:10%;margin-bottom:0;}/*add these attributes to .scroll only*/

.text-wrapper{width: 100%;height: 75%;overflow: hidden;position:relative;/*add position relative*/}
https://snipt.net/embed/7b022af4d5d1eec8ae47b6b17499d456/
/raw/7b022af4d5d1eec8ae47b6b17499d456/
7b022af4d5d1eec8ae47b6b17499d456
css
CSS
3
2019-06-25T05:45:16
True
False
False
/api/public/snipt/28853/
css-fix
<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="nc">.scroll</span><span class="p">{</span><span class="nb">position</span><span class="o">:</span><span class="nb">fixed</span><span class="p">;</span><span class="nb">left</span><span class="o">:</span><span class="m">980px</span><span class="p">;</span><span class="nb">bottom</span><span class="o">:</span><span class="m">10%</span><span class="p">;</span><span class="nb">margin-bottom</span><span class="o">:</span><span class="m">0</span><span class="p">;}</span><span class="c">/*add these attributes to .scroll only*/</span> </span><span id="L-2"><a name="L-2"></a> </span><span id="L-3"><a name="L-3"></a><span class="nc">.text-wrapper</span><span class="p">{</span><span class="nb">width</span><span class="o">:</span> <span class="m">100%</span><span class="p">;</span><span class="nb">height</span><span class="o">:</span> <span class="m">75%</span><span class="p">;</span><span class="nb">overflow</span><span class="o">:</span> <span class="nb">hidden</span><span class="p">;</span><span class="nb">position</span><span class="o">:</span><span class="nb">relative</span><span class="p">;</span><span class="c">/*add position relative*/</span><span class="p">}</span> </span></pre></div> </td></tr></table>
css