Remove Button Text in IE7

Avatar of Chris Coyier
Chris Coyier on

HTML:

<input class="button" type="button" value="Go">

.. or ..

<button class="button">Go</button>

CSS:

input.button { text-indent: -9000px; text-transform: capitalize; }

Negative-indent alone unfortunately doesn’t work to remove text from a button element in IE7, but add text-transform: capitalize; and presto!