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? Quote Link to comment 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/ Quote Link to comment Share on other sites More sharing options...
adamlacombe Posted July 20, 2009 Author Share Posted July 20, 2009 That works! Thanks!! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.