Skip to main content
Home / Code Snippets / CSS / Remove Button Text in IE7

Remove Button Text in IE7

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!

icon-link icon-logo-star icon-search icon-star