adamlacombe Posted July 20, 2009 Share Posted July 20, 2009 I have been trying out everything to make all of my submit buttons have a background. I tried: input.submit{ background: url(green.gif) no-repeat; background-position:top left; border-color:#cccccc; border-width:1px; border-style:solid; } input,submit{ background: url(green.gif) no-repeat; background-position:top left; border-color:#cccccc; border-width:1px; border-style:solid; } submit{ background: url(green.gif) no-repeat; background-position:top left; border-color:#cccccc; border-width:1px; border-style:solid; } None work except for one, but it also makes my textboxs have that css. Is there a way to add css to the submit buttons with using a class? Link to comment https://forums.phpfreaks.com/topic/166643-solved-submit-button-css/ Share on other sites More sharing options...
rhodesa Posted July 20, 2009 Share Posted July 20, 2009 Your options are to add a class to all the elements, use JavaScript, or wait for CSS3 support Here are the details: http://www.dustindiaz.com/input-element-css-woes-are-over/ Link to comment https://forums.phpfreaks.com/topic/166643-solved-submit-button-css/#findComment-878723 Share on other sites More sharing options...
adamlacombe Posted July 20, 2009 Author Share Posted July 20, 2009 That works! Thanks!! Link to comment https://forums.phpfreaks.com/topic/166643-solved-submit-button-css/#findComment-878728 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.