Posted By

JimSangwine on 05/05/11


Tagged


Versions (?)

Remove Button Text in IE7


 / Published in: CSS
 

  1. /* HTML: */
  2.  
  3. <input class="button" type="button" value="Go">
  4.  
  5. /* .. or .. */
  6.  
  7. <button class="button">Go</button>
  8.  
  9. /* CSS: */
  10.  
  11. input.button { text-indent: -9000px; text-transform: capitalize; }
  12.  
  13. /* Negative-indent alone unfortunately doesn't work to remove text from a button element in IE7, but add text-transform: capitalize; and presto! */

Report this snippet  

You need to login to post a comment.