Jump to content

How to change button colors?


Recommended Posts

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...