TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Stop Using the text-indent:-9999px CSS Trick

8 pointsby luigialmost 15 years ago

1 comment

eclarkalmost 15 years ago
Notice that the linked google employee(<a href="http://maileohye.com/html-text-indent-not-messing-up-your-rankings/" rel="nofollow">http://maileohye.com/html-text-indent-not-messing-up-your-ra...</a>) has no real solution. Everything is still in development. Though if your site layout is conducive Google's search results are a good alternative (They still don't use the alt property).<p>While the text-indent css is a hack. For now it is the best we have. The alt property will get you in the search index, it will not allow for good display when google returns a result. That little snippet of each site that google shows is hard to get right using just alt text.<p>We should be moving away from using it, however right now almost everyone uses it. Google won't penalize you for it yet.