/ Published in: Other
Expand |
Embed | Plain Text
-9999PX So popular was this method, we made a tee shirt out of it, and it sold, baby, it sold. But despite its enduring popularity, Phark has drawbacks of its own: chiefly, a performance hit caused by the need to draw a giant 9999px box offscreen. (Yes, the browser really does this.) My friend Scott Kellum, design director at Treesaver, has now sent me this refactored code for hiding text, which I hereby christen the Kellum Method: .hide-text { text-indent: 100%; white-space: nowrap; overflow: hidden; }
You need to login to post a comment.
