CSS to hide INPUT BUTTON value text
Solution 1:
I use
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 */
Solution 2:
I had the opposite problem (worked in Internet Explorer, but not in Firefox). For Internet Explorer, you need to add left padding, and for Firefox, you need to add transparent color. So here is our combined solution for a 16px x 16px icon button:
input.iconButton
{
font-size: 1em;
color: transparent; /* Fix for Firefox */
border-style: none;
border-width: 0;
padding: 0 0 0 16px !important; /* Fix for Internet Explorer */
text-align: left;
width: 16px;
height: 16px;
line-height: 1 !important;
background: transparent url(../images/button.gif) no-repeat scroll 0 0;
overflow: hidden;
cursor: pointer;
}
Solution 3:
well:
font-size: 0;
line-height: 0;
work awesome for me!
Solution 4:
Have you tried setting the text-indent property to something like -999em? That's a good way to 'hide' text.
Or you can set the font-size to 0, which would work too.
http://www.productivedreams.com/ie-not-intepreting-text-indent-on-submit-buttons/