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 post
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 post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...