How to apply css style to all disabled buttons using CSS?

Sheonarayan
Posted by Sheonarayan under CSS 3 category on | Points: 40 | Views : 1439
To apply CSS style for all disabled elements on the page, use below code snippet

<style>
button:disabled{
background-color:red;
}
</style>


Using above CSS code will change the background color of all disabled elements on the page to "red".

Thanks

Comments or Responses

Login to post response