Why are there CSS rules using -9999px
1 answer
It's a way to hide an element, which still allows screen readers (and similar technologies) to read the content, as opposed to what you should be using, say display: none
.
The value is 9999px
arbitrary. Could be any negative number really, but I think it feels safer to really shove it far: P
+3
source to share