Click here to Skip to main content
15,902,189 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi guys, just require some assistance please. I have an input of type button, and i have set the background colour of it to purple. but when i disable the button it looks like the value of the button in bold.

Is there anny css that i can apply to get rid of it?

Thanks in advance guys.

here is my css for the button:

CSS
input[type=button]
{
    background-color: Purple;
    color: #FFFFFF;
    width: 90px;
}
Posted
Updated 24-Aug-11 2:15am
v2

1 solution

CSS
input[type=button]:disabled
{
    background-color: Purple;
    color: #FFFFFF;
    width: 90px;
}
 
Share this answer
 
Comments
TheyCallMeMrJames 24-Aug-11 9:46am    
Got'er. Just keep in mind that that's a CSS3 selector (so not supported by a bunch of IE users). http://caniuse.com/#cats=CSS
Member 8102934 25-Aug-11 9:23am    
this did not work :( probably because it is using IE.
Is there no way to do this for IE?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900