Input does not load style disabled

2

I'm editing some input , select and textarea , removing the "default" style, but I'm having a problem. When it is like disabled , it should appear with a dark background. But it appears in white, even locked state. Does anyone know what I can change?

CSS:

input, select {
    border: 1px solid #848484; 
    -webkit-border-radius: 30px; 
    -moz-border-radius: 30px; 
    border-radius: 30px; 
    outline:0; 
    height:100px; 
    width: 350px; 
    padding-left:10px; 
    padding-right:10px; 
}

How the fund should look:

How are you getting even disabled:

    
asked by anonymous 12.04.2016 / 20:35

1 answer

3

You can use this:

input {
    border: 1px solid #848484; 
    -webkit-border-radius: 5px; 
    -moz-border-radius: 5px; 
    border-radius: 5px; 
    outline:0; 
    height:100px; 
    width: 350px; 
    padding-left:10px; 
    padding-right:10px; 
}

input[disabled]{
	background-color: #844;
}
<input type="text">
<input type="text" disabled>

In this way select input that have a disabled attribute.

jsFiddle: link

    
12.04.2016 / 20:39