javierdl Posted October 21, 2012 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 Link to comment Share on other sites More sharing options...
Don E Posted October 21, 2012 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". Link to comment Share on other sites More sharing options...
javierdl Posted October 21, 2012 Author Share Posted October 21, 2012 Nevermind guys! I believe I found it! <input type=button style="color:#ffffff; background:#123456;" value=Colorful>JDL Link to comment Share on other sites More sharing options...
javierdl Posted October 21, 2012 Author Share Posted October 21, 2012 Dou! I didn't see your post Don E Thanks a bunch anyway JDL Link to comment Share on other sites More sharing options...
Labtec Posted October 22, 2012 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 Link to comment Share on other sites More sharing options...
afish674 Posted October 22, 2012 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/ Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now