Why are there CSS rules using -9999px -
on twitter site, found following css rules:
.profilecanopy-headerbg img { position: absolute; left: 0; right: 0; top: -9999px; bottom: -9999px; margin: auto 0; width: 100%; } what reason limit -9999px?
it's way hide element still allows screen readers (and similar technologies) read contents, unlike if use, say, display: none.
the value 9999px arbitrary. can negative number guess feels safer shove far away :p
Comments
Post a Comment