Méthode d’avantage compatible que celle du hack -9999px !
1 2 3 |
button {text-indent:-9999px;} * html button{font-size:0;display:block;line-height:0} /* ie6 */ *+html button{font-size:0;display:block;line-height:0} /* ie7 */ |
Source : http://www.zeldman.com/2012/03/01/replacing-the-9999px-hack-new-image-replacement/
1 2 3 4 5 |
.hide-text { text-indent: 100%; white-space: nowrap; overflow: hidden; } |