Text verstecken – performantere Alternative zum -999em-Hack

Performance is dramatically improved because a 9999px box is not drawn. Noticeably so in animations on the iPad 1.

Sounds legit. Erster Einsatz war erfolgreich.

.hide-text {
    text-indent: 100%;
    white-space: nowrap;
    overflow: hidden;

Quelle: Replacing the -9999px hack (new image replacement) – Jeffrey Zeldman Presents The Daily Report


Leave a Reply