javierdl 2 Posted October 21, 2012 Report Share Posted October 21, 2012 I haven't been able to find how to change the color of a regular form button.Unfortunately I need to do this for IE8 Thanks guys, JDL 1 Quote Link to post Share on other sites
Don E 125 Posted October 21, 2012 Report Share Posted October 21, 2012 Color as in the text that's displayed for the button or the background color? form#styleInput input { background-color: blue; color: white;} <form id="styleInput"> <input type="button" value="this is a styled text button" /> </form> That should do it and works in IE8 too. It also works even when type="submit". Quote Link to post Share on other sites
javierdl 2 Posted October 21, 2012 Author Report Share Posted October 21, 2012 Nevermind guys! I believe I found it! <input type=button style="color:#ffffff; background:#123456;" value=Colorful>JDL Quote Link to post Share on other sites
javierdl 2 Posted October 21, 2012 Author Report Share Posted October 21, 2012 Dou! I didn't see your post Don E Thanks a bunch anyway JDL Quote Link to post Share on other sites
Labtec 4 Posted October 22, 2012 Report Share Posted October 22, 2012 Rather than creating inline styles, add this to your css: #form_name input[type="button"] {background-color: #ff0000;color: #ff0000;} This should target only the inputs which have a type of "button". Regards, Laboratory Technician Quote Link to post Share on other sites
afish674 7 Posted October 22, 2012 Report Share Posted October 22, 2012 You could also try using the jQuery UI for styling buttons. You can make them look pretty swish! http://jqueryui.com/button/ Quote Link to post Share on other sites
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.