Using a background image for submit buttons in IE6

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

Allows custom background images for submit buttons in ie6

Copy this code and paste it in your HTML
  1. input.button{
  2. width:114px;
  3. height:37px;
  4. border: none;
  5. background: transparent url(images/submit_btn.gif) no-repeat center;
  6. overflow: hidden;
  7. text-indent: -999px;
  9. /* this text sorts text indent in IE6 */
  10. font-size: 0px;
  11. display:block;
  12. line-height: 0px;
  14. }


Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.