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

Popular posts from this blog

javascript - Bootstrap Popover: iOS Safari strange behaviour -

Magento/PHP - Get phones on all members in a customer group -

session - Logging Out Using PHP -