Return to Snippet

Revision: 16736
at August 13, 2009 20:55 by jonathanpglick


Updated Code
text-indent: -999em; /* Hide the text, works in most modern browsers */

/* --- Needed for IE --- */
font-size: 0px; /* works well in IE7. still a black line (basically the text) in IE6. */

display: block; /* Negative text-indent works in IE(6? worked fine in 7) only if this is added. */

line-height: 0px; /* Another fix for IE6. */

Revision: 16735
at August 13, 2009 20:54 by jonathanpglick


Initial Code
text-indent: -999em; /* Hide the text, works in most modern browsers */

/* --- Needed for IE --- */
font-size: 0px; /* 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(6? worked fine in 7) only if this is added. */

line-height: 0px; /* Another fix for IE6. */

Initial URL

                                

Initial Description

                                

Initial Title
Hide text on input[type=submit]

Initial Tags

                                

Initial Language
CSS