Return to Snippet

Revision: 33731
at October 12, 2010 21:39 by resting


Initial Code
.submit {
height: Xpx;
width: Xpx;
background-color: transparent;
/*gets rid of the white background color that
is there by default*/
background-image: url(../images/image.png);
_background-image: url(../images/image.gif);
background-repeat: no-repeat;
border: none;
text-indent: -5000px;
text-transform: uppercase;
/*don't ask, but this gets rid of the
dash in IE7 and 6*/
_display: block;
/*displays the image in IE6*/
_font-size: 0px; 
/*gets rid of the value because apparently the
text-indent doesn't do a damn thing in IE6*/
}

Initial URL
http://jc-designs.net/blog/2009/08/background-image-on-submit-button-in-ie6/

Initial Description
Taken from (http://jc-designs.net/blog/2009/08/background-image-on-submit-button-in-ie6/)

Initial Title
CSS input submit background image

Initial Tags
css, image, background

Initial Language
CSS