Hide text on input[type=submit]


/ Published in: CSS
Save to your folder(s)



Copy this code and paste it in your HTML
  1. text-indent: -999em; /* Hide the text, works in most modern browsers */
  2.  
  3. /* --- Needed for IE --- */
  4. font-size: 0px; /* works well in IE7. still a black line (basically the text) in IE6. */
  5.  
  6. display: block; /* Negative text-indent works in IE(6? worked fine in 7) only if this is added. */
  7.  
  8. line-height: 0px; /* Another fix for IE6. */

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.