Created
June 23, 2013 12:08
-
-
Save arnoldc/5844796 to your computer and use it in GitHub Desktop.
css: text-indent for IE
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .button{ | |
| width:114px; | |
| height:37px; | |
| border: none; | |
| background: transparent url(images/submit_btn.gif) no-repeat center; | |
| overflow: hidden; | |
| text-indent: -999px; | |
| font-size: 0; | |
| display:block; | |
| line-height: 0; | |
| } | |
| /* | |
| font-size:0 | |
| is used to reduce the font size and works well in IE7. But even after adding this line, you would notice a black line(which is basically the text) on the center of the button in IE6. | |
| display:block | |
| Negative text-indent works in IE only if this is added. | |
| */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment