How to style the disabled button using CSS

How to style the disabled button using CSS

In this post we will give you information about How to style the disabled button using CSS. Hear we will give you detail about How to style the disabled button using CSSAnd how to use it also give you demo for it if it is necessary.

we are going to learn about how to style the disabled (html) button using the css.

Consider, we have a html button with the disabled attribute:

<button disabled="true" >Login</button>

Styling the disabled button

To style the disabled button, we can use the :disabled pseudo-class selector in css.

Here is an example, that sets the background, font color to the disabled button:

.login:disabled{   background:  #fff;   color: #ccc;   cursor: no-drop;}

If you are using input element as a button then you can add the disabled styles like this:

input[type="text"]:disabled{   background:  #fff;   color: #ccc;   cursor: no-drop;}

Hope this code and post will helped you for implement How to style the disabled button using CSS. if you need any help or any feedback give it in comment section or you have good idea about this post you can give it comment section. Your comment will help us for help you more and improve us. we will give you this type of more interesting post in featured also so, For more interesting post and code Keep reading our blogs

For More Info See :: laravel And github

We're accepting well-written guest posts and this is a great opportunity to collaborate : Contact US