snipt

Ctrl+h for KB shortcuts

CSS

Hiding Class for Accessibility

1
2
3
4
5
6
.ally{
    position: absolute;
    left: -9999px;
}

/* http://css-tricks.com/snippets/css/accessibilityseo-friendly-css-hiding/ */
https://snipt.net/embed/eb805ffca5ab15e9f34bb9ed36165baa/
/raw/eb805ffca5ab15e9f34bb9ed36165baa/
eb805ffca5ab15e9f34bb9ed36165baa
css
CSS
6
2019-08-19T13:18:34
True
False
False
Aug 23, 2012 at 09:28 AM
/api/public/snipt/43467/
hiding-links-for-accessibility
<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="nc">.ally</span><span class="p">{</span> </span><span id="L-2"><a name="L-2"></a> <span class="nb">position</span><span class="o">:</span> <span class="nb">absolute</span><span class="p">;</span> </span><span id="L-3"><a name="L-3"></a> <span class="nb">left</span><span class="o">:</span> <span class="m">-9999px</span><span class="p">;</span> </span><span id="L-4"><a name="L-4"></a><span class="p">}</span> </span><span id="L-5"><a name="L-5"></a> </span><span id="L-6"><a name="L-6"></a><span class="c">/* http://css-tricks.com/snippets/css/accessibilityseo-friendly-css-hiding/ */</span> </span></pre></div> </td></tr></table>
a11y, accessibility, css