/ Published in: CSS
URL: http://www.zeldman.com/2012/03/01/replacing-the-9999px-hack-new-image-replacement/
The alt property of the img tag is also a good practice.
Expand |
Embed | Plain Text
#1--- .hide-text { text-indent: 100%; white-space: nowrap; overflow: hidden; } #2--- //with alt property <h1><a href="/"><img src="logo.png" alt="My Site Title" /></a></h1> #3---current .ir{ border:0; font: 0/0 a; text-shadow: none; color: transparent; background-color: transparent; }
You need to login to post a comment.
